*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --dark: #05040a;
  --dark-2: #0a0814;
  --accent: #a78bfa;
  --accent-glow: rgba(167, 139, 250, 0.3);
  --white: #ffffff;
  --gray: #9ca3af;
  --border: rgba(167, 139, 250, 0.15);
  --github-dark: #1b1f23;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
  margin: 0;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(167, 139, 250, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 20% 70%,
      rgba(99, 102, 241, 0.05) 0%,
      transparent 40%
    );
  z-index: -2;
  animation: bgMove 25s infinite alternate ease-in-out;
  pointer-events: none;
}
@keyframes bgMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(3%, 3%);
  }
}

/* HERO */
.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-hero-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 18px 40px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  text-decoration: none;
}

.btn-hero-outline:hover {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 10px 30px var(--accent-glow);
  text-decoration: none;
}

/* NAVBAR */



.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
}

.logo-text {
  display: inline-block;
}

.logo-dot {
  color: #a78bfa;
  margin-left: -2px;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #05040a;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 9999; 
}

.navbar.scrolled{
  background:#05040a;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

.navbar::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:2px;

  background:linear-gradient(
    90deg,
    transparent,
    #6366f1,
    #a78bfa,
    #6366f1,
    transparent
  );

  background-size:200% 100%;
  animation:riverFlow 6s linear infinite;

  box-shadow:0 0 8px rgba(167,139,250,0.4);
}

@keyframes riverFlow{

0%{
background-position:0% 0%;
}

100%{
background-position:200% 0%;
}

}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links.active {
  right: 0;
}

.nav-links{
  position:relative;
  display:flex;
  gap:30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li{
  list-style: none;
}

.nav-links a{
  position:relative;
  text-decoration:none;
  color:#fff;
  font-weight:500;
  padding:5px 0;
}

.nav-links::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:var(--underline-left);
  width:var(--underline-width);
  height:2px;
  background:linear-gradient(90deg,#6366f1,#a78bfa);
  transition:all 0.35s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* SCROLL NAVBAR */

.navbar.scrolled {
  background: rgba(5, 4, 10, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: block;
  cursor: pointer;
  font-size: 1.5rem;
  position: relative;
  z-index: 10001;
}

#hamburger {
    z-index: 999999 !important; 
    position: relative !important;
    pointer-events: auto !important;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  display: block;
  margin: 5px 0;
  transition: 0.4s;
}

/* --- MASAÜSTÜ (992px ve Üzeri) --- */
@media (min-width: 992px) {
    .hamburger {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
        flex-direction: row;
        gap: 30px;
        list-style: none;
        background: transparent !important; 
    }
    .nav-links a {
        color: white;
        text-decoration: none;
    }
}

@media (max-width: 991px) {
  .hamburger {
    gap: 1px;
    cursor: pointer;
    position: fixed; 
    right: 20px;
    z-index: 99999; 
  }

  .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    transition: 0.3s ease-in-out;
  }

  /* Menü Paneli */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 280px;
    height: 100vh;
    background: #05040a;
    z-index: 99998; 
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
  }

  .nav-links.active {
    right: 0 !important;
  }

  /* X Animasyonu  */
  .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); }
}

/* SECTIONS */
section {
  padding: 100px 8%;
  scroll-margin-top: 50px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-tag {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  display: block;
  margin-bottom: 20px;
}
.section-h {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 50px;
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  width: 100%;
  align-items: center;
  gap: 40px;
}
.hero-title {
  background: linear-gradient(90deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 30px;
  font-family: "Playfair Display";
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  text-shadow: 0 0 20px var(--accent-glow);
}

.hero-content p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-end;
}
.stat {
  text-align: right;
  border-right: 3px solid var(--accent);
  padding-right: 24px;
  transition: 0.5s ease;
  cursor: default;
}
.stat:hover {
  transform: translateX(-15px);
  filter: drop-shadow(0 0 15px var(--accent-glow));
}
.stat-n {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}
.stat-l {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-top: 5px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

.section-sub {
  text-align: left;
  max-width: 720px;
  color: var(--gray);
  line-height: 1.5;
  font-size: 1.05rem;
  margin-bottom: 50px;
}

.service-icon {
  font-size: 28px;
  margin-bottom: 20px;
  color: #a78bfa;
}

/* GRID & CARDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.card {
  background: var(--dark-2);
  padding: 45px 35px;
  border: 1px solid var(--border);
  transition: 0.4s;
  position: relative;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -15px var(--accent-glow);
}
.card i {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 25px;
}
.card h3 {
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 25px;
}
.card-tags span {
  background: rgba(167, 139, 250, 0.08);
  color: var(--accent);
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}
.card:hover .card-tags span {
  background: var(--accent);
  color: var(--dark);
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Blog kart */
.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#blog a,
#blog a:link,
#blog a:visited,
#blog a:hover,
#blog a:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* Başlık ve paragraf güvenliği */
#blog h3,
#blog p {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Blog kart */
.blog-card a {
  display: block;
  padding: 30px;
}

/* Tarih */
.blog-card .date {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

/* Başlık */
.blog-card h3 {
  margin: 0 0 10px 0;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  text-decoration: none !important;
  transition: var(--white) 0.3s ease;
}

/* Açıklama */
.blog-card p {
  margin: 0;
  color: var(--white);
  font-size: 0.95rem;
}

/* Hover */
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--accent-glow);
}
.blog-card:hover h3 {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card a,
.blog-card a:link,
.blog-card a:visited,
.blog-card a:hover,
.blog-card a:active {
  text-decoration: none !important;
  border-bottom: none !important;
  color: inherit !important;
}
.blog-card h3,
.blog-card h3 a,
.blog-card p {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-section {
    display: block;
    width: 100%;
    clear: both;
    position: relative;
    padding: 120px 8%; 
}

.form-control {
  width: 100%;
  background: rgba(167, 139, 250, 0.03);
  border: 1px solid var(--border);
  padding: 16px;
  color: white;
  outline: none;
  transition: 0.3s;
  font-family: inherit;
  margin-bottom: 15px;
}
.form-control:focus {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.07);
}
.btn-main {
  background: var(--accent);
  color: var(--dark);
  padding: 18px 40px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--accent-glow);
}

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

/* --- FOOTER --- */
.site-footer {
    background: #05040a;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
}

.site-footer p,
.site-footer li a {
    color: #e5e7eb;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--accent); 
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-col p {
    color: #d1d5db;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Sosyal İkonlar */
.footer-socials {
    display: flex;
    gap: 15px;
}

/* Genel Sosyal Medya İkon Tasarımı */
.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(167, 139, 250, 0.05); 
    border: 1px solid rgba(167, 139, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; 
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border-radius: 8px; 
}

/* --- Instagram Hover --- */
.footer-socials a:hover .fa-instagram {
    color: #fff; 
}

.footer-socials a:hover:has(.fa-instagram) {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(214, 36, 159, 0.3); 
    transform: translateY(-5px) scale(1.1);
}

/* --- LinkedIn Hover --- */
.footer-socials a:hover .fa-linkedin-in,
.footer-socials a:hover .fa-linkedin {
    color: #fff;
}

.footer-socials a:hover:has(.fa-linkedin-in),
.footer-socials a:hover:has(.fa-linkedin) {
    background: #0077b5; 
    border-color: #0077b5;
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3); 
    transform: translateY(-5px) scale(1.1);
}

/* --- GitHub Hover --- */
.footer-socials a:has(.fa-github) {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.footer-socials a:hover:has(.fa-github) {
    background: #1b1f23 !important;
    border-color: #30363d !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-5px) scale(1.1) !important;
}

.footer-socials a:hover .fa-github {
    color: #ffffff !important;
}

/* Footer Alt Bilgi */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #d1d5db;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
}

/* WHATSAPP */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}
.reveal.vis {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-content p {
    margin: 20px auto 0;
    text-align: center;
  }
  .hero-stats {
    flex-direction: row;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
  }
  .stat {
    text-align: center;
    border-right: none;
    border-bottom: 3px solid var(--accent);
    padding: 0 15px 10px;
    min-width: 120px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}