@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a1a;
  --bg-soft: #121228;
  --text: #f8fbff;
  --muted: #b8bbd8;
  --neon-cyan: #4df0ff;
  --neon-blue: #5a7aff;
  --neon-magenta: #ff4de8;
  --gradient: linear-gradient(120deg, var(--neon-blue), var(--neon-magenta), var(--neon-cyan));
  --radius: 20px;
  --shadow: 0 20px 60px rgba(10, 15, 40, 0.6);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg); 
}
 
::-webkit-scrollbar-thumb {
  background: var(--bg-soft); 
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue); 
}

body {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(90, 122, 255, 0.35), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(255, 77, 232, 0.25), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(77, 240, 255, 0.15), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: opacity 0.25s ease;
  opacity: 0;
}

body.page-loaded {
  opacity: 1;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-wrapper {
  max-width: 1200px;
  padding: 0 24px;
  margin: 0 auto;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(77, 240, 255, 0.2);
  transition: all 0.3s ease;
}

header.site-header.scrolled {
  background: rgba(10, 10, 26, 0.98);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(77, 240, 255, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  position: relative;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.brand-logo {
  width: 48px;
  height: 48px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  transition: transform 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

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

.primary-btn, .ghost-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn {
  background: var(--gradient);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(72, 101, 255, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 61, 217, 0.4);
  color: var(--text);
}

main {
  padding-bottom: 120px;
}

section {
  padding: 80px 0;
}

section h2.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

section p.section-copy {
  color: var(--muted);
  max-width: 640px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(62, 231, 255, 0.4), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(255, 61, 217, 0.5), transparent 60%),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.hero-visual::after,
.hero-visual::before {
  content: '';
  position: absolute;
  
  border: 2px solid rgba(62, 231, 255, 0.3);
  border-radius: var(--radius);
  animation: pulse 5s ease-in-out infinite;
}

.hero-visual::after {
  inset: 20%;
  border-color: rgba(255, 61, 217, 0.25);
  animation-delay: 0.5s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1.19); }
  50% { opacity: 1; transform: scale(1.23); }
}

.blob-one, .blob-two {
  position: absolute;
  width: 220px;
  height: 220px;
  background: var(--gradient);
  filter: blur(40px);
  opacity: 0.6;
}

.blob-one { top: -40px; left: -20px; }
.blob-two { bottom: -60px; right: 0; }

.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  max-width: 500px;
  border-radius: 18px;
  padding: 32px;
  background: rgba(10, 10, 26, 0.92);
  border: 1px solid rgba(77, 240, 255, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(6, 6, 22, 0.8);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-card__logo img {
  width: 50px;
  height: 50px;
}

.hero-card__label {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-card__subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card__subtitle ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.hero-card__subtitle li {
  text-align: center;
}

.hero-card__slogan {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-top: 4px;
}

.hero-card__list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-card__list li::before {
  content: '•';
  color: var(--neon-magenta);
  margin-right: 8px;
}

.hero-card__contact {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-card__contact i {
  color: var(--neon-cyan);
  margin-right: 6px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.hero-content p {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  position: relative;
  padding: 24px;
  background: rgba(18, 18, 40, 0.9);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: 220px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 240, 255, 0.4);
}

.service-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(72, 101, 255, 0.4), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover .service-card__glow {
  opacity: 1;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(62, 231, 255, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card .tagline {
  color: var(--muted);
  margin-bottom: 16px;
}

.service-detail {
  background: rgba(8, 8, 24, 0.9);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.service-detail header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.service-detail header .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(72, 101, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.service-detail ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 20px;
}

.sales-line {
  margin-top: 12px;
  font-weight: 500;
  color: var(--neon-cyan);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.infra-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(5, 5, 16, 0.85);
  border: 1px solid rgba(78, 202, 255, 0.2);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.reference-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 8, 18, 0.9);
}

.reference-card__img {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.reference-card figcaption {
  padding: 20px;
}

.blog-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(18, 18, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 240, 255, 0.3);
}

.blog-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.blog-detail__header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 16px 0;
}

.blog-detail__content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-detail__content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--neon-cyan);
  font-size: 1.4rem;
}

.blog-detail__content p {
  margin-bottom: 16px;
}

.blog-detail__content strong {
  color: var(--neon-magenta);
}

.blog-grid,
.blog-archive {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.blog-card__thumb {
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  min-height: 140px;
}

.blog-card__body span {
  color: var(--muted);
  font-size: 0.85rem;
}

.blog-card__body h3 {
  margin: 8px 0;
}

.blog-card__body p {
  margin-bottom: 24px;
  line-height: 1.6;
  color: var(--muted);
}

.blog-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-controls input,
.blog-controls select {
  flex: 1;
  min-width: 200px;
  background: rgba(7, 7, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(8, 8, 22, 0.9);
  border: 1px solid rgba(62, 231, 255, 0.25);
}

.contact-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-card a {
  color: var(--text);
}

form.contact-form {
  display: grid;
  gap: 16px;
}

form.contact-form input,
form.contact-form textarea {
  background: rgba(7, 7, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 14px;
}

form.contact-form textarea {
  min-height: 140px;
}

footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(4, 4, 12, 0.95);
}

footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

footer ul {
  display: flex;
  gap: 16px;
  list-style: none;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.modal.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: rgba(5, 5, 18, 0.95);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(62, 231, 255, 0.3);
  width: min(540px, 90vw);
  z-index: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}

.admin-grid {
  display: grid;
  gap: 32px;
}

.admin-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(8, 8, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.admin-card label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-card input,
.admin-card textarea {
  background: rgba(6, 6, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
}

.admin-card textarea {
  min-height: 220px;
  font-family: 'Space Grotesk', monospace;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.password-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 1000;
  padding: 24px;
}

.password-box {
  background: rgba(8, 8, 26, 0.95);
  border: 1px solid rgba(77, 240, 255, 0.3);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.password-box h2 {
  margin-bottom: 12px;
}

/* RESPONSIVE DESIGN UPDATES */

/* Mobile Menu Button (Desktop Hidden) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--neon-cyan);
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  /* Navbar Mobile Layout */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  [data-reveal],
  [data-reveal].visible {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important; /* Ek bir güvenlik için */
  }
.navbar nav {
display: contents;
}
/* Mobile Menu Button Visible */
  .mobile-menu-btn {
display: block;
margin-left: auto; /* Force right alignment */
}
header .primary-btn {
display: none;
}

  /* Mobile Menu Button Visible */
  .mobile-menu-btn {
    display: block;
    margin-left: auto; /* Force right alignment */
  }

  /* Header CTA Button - Hide on mobile to save space */
  header .primary-btn {
    display: none;
  }

  /* Navigation Links - Mobile Full Screen Redesign */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 16, 0.98); /* Darker background */
    padding: 24px;
    z-index: 55;
    backdrop-filter: blur(25px);
    gap: 32px;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.95);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1);
  }

  .nav-links li {
    width: auto;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delay for items */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }

  .nav-links a {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    width: auto;
    display: inline-block;
    text-align: center;
    padding: 10px 0;
    border-bottom: none;
    color: var(--text);
    position: relative;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease, left 0.3s ease;
  }
  
  .nav-links a:hover {
    color: var(--neon-cyan);
    padding-left: 0;
    background: transparent;
    transform: scale(1.05);
  }
  
  .nav-links a:hover::after {
    width: 100%;
    left: 0;
  }
  
  /* Removed keyframes animation in favor of transition */

  /* Hero Section Adjustments */
  .hero {
    padding-top: 60px;
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

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

  /* Hero Visual & Card Adjustments */
  .hero-visual {
    min-height: auto;
    margin-top: 40px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    /* Show visuals on mobile but simplified */
    display: block; 
  }
  
  .hero-visual::after,
  .hero-visual::before,
  .blob-one,
  .blob-two {
    /* Keep blobs on mobile for atmosphere */
    opacity: 0.4;
    transform: scale(0.7);
  }
  
  .blob-one { top: -20px; left: -10px; }
  .blob-two { bottom: -30px; right: -10px; }

  .hero-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    inset: 0;
    margin-top: 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Grids to Single Column */
  .service-grid,
  .reference-grid,
  .contact-grid,
  .blog-grid,
  .infra-grid {
    grid-template-columns: 1fr;
  }

  /* Blog Card Adjustments */
  .blog-card {
    grid-template-columns: 1fr;
  }
  
  .blog-card__thumb {
    min-height: 200px;
    width: 100%;
  }

  .blog-detail {
    padding: 24px 16px;
  }
  
  .blog-detail__content {
    font-size: 1rem;
  }

  /* General Padding */
  section {
    padding: 48px 0;
  }
  
  .site-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .primary-btn, .ghost-btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-card {
    padding: 20px;
  }
}

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
