/* Base Theme - Dark Mode (Default) */
:root {
	--bg: #0c0f14;
	--bg-elev: #12161d;
	--card: #141a22;
	--text: #e6eef9;
	--muted: #98a2b3;
	--primary: #2b87ff;
	--primary-600: #1f6fe0;
	--accent: #00d1ff;
	--ok: #10b981;
	--warn: #f59e0b;
	--err: #ef4444;
	--radius: 12px;
	--shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Light Mode Theme */
[data-theme="light"] {
	--bg: #ffffff;
	--bg-elev: #f8fafc;
	--card: #ffffff;
	--text: #1e293b;
	--muted: #64748b;
	--primary: #2563eb;
	--primary-600: #1d4ed8;
	--accent: #0891b2;
	--ok: #059669;
	--warn: #d97706;
	--err: #dc2626;
	--shadow: 0 10px 30px rgba(0,0,0,.1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
	background: radial-gradient(1200px 600px at 70% -20%, rgba(0,209,255,.06), transparent 60%),
		linear-gradient(180deg, #0b0e13 0%, #0c0f14 40%, #0c0f14 100%);
	color: var(--text);
	/* Smooth page transitions */
	transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* Light mode background */
[data-theme="light"] body {
	background: radial-gradient(1200px 600px at 70% -20%, rgba(37,99,235,.06), transparent 60%),
		linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #ffffff 100%);
}

/* Light mode hero text */
[data-theme="light"] .hero-overlay h1 {
	color: #1e293b;
	text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .hero-overlay p {
	color: #475569;
}

/* Light mode metrics section - no special styling needed */

/* Layout */
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-title { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: .4px; line-height: 1.2; }
.section-subtitle { color: var(--muted); margin: 0 0 22px; max-width: 820px; }
.section-title .accent { position: relative; display: inline-block; }
.section-title .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .6; }
.grid { display: grid; gap: 20px; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(12,15,20,.8); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); transition: background 0.3s ease; }

/* Light mode header */
[data-theme="light"] .header { 
	background: rgba(255,255,255,.9); 
	border-bottom: 1px solid rgba(0,0,0,.1); 
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .3px; }
.brand .logo { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #1a2330, #263041); display: grid; place-items: center; box-shadow: inset 0 0 40px rgba(0,209,255,.1); }
.brand .name { font-size: 18px; }

.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; opacity: .9; }
.nav-links a:hover { background: rgba(255,255,255,.06); opacity: 1; }

.theme-switch { display: inline-flex; align-items: center; margin-right: 8px; }
.theme-switch button { 
	background: transparent; 
	color: var(--text); 
	border: 1px solid rgba(255,255,255,.14); 
	border-radius: 8px; 
	padding: 8px; 
	cursor: pointer; 
	font-size: 16px;
	transition: all 0.3s ease;
}
.theme-switch button:hover { 
	background: rgba(255,255,255,.06); 
	transform: rotate(180deg);
}

.lang-switch { display: inline-flex; gap: 8px; align-items: center; }
.lang-switch button { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.lang-switch button.active { background: var(--primary); border-color: var(--primary); }

/* Hero */
.hero { position: relative; height: 72vh; min-height: 460px; display: grid; place-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.6) contrast(1.1); }
.hero-overlay { position: relative; text-align: center; padding: 0 16px; display: grid; gap: 12px; justify-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 13px; }
.hero-overlay h1 { font-size: clamp(36px, 6.4vw, 64px); margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,.6); letter-spacing: .2px; }
.hero-overlay p { color: var(--muted); margin: 0; font-size: clamp(14px, 2.6vw, 18px); max-width: 780px; }
.hero-ctas { display: inline-flex; gap: 12px; margin-top: 10px; }

/* Metrics section with scroll animation */
#metrics-section {
	opacity: 0;
	transform: translateY(50px);
	transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#metrics-section.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid rgba(255,255,255,.12); transition: .2s ease; box-shadow: 0 2px 0 rgba(255,255,255,.06) inset; }

/* Light mode button borders */
[data-theme="light"] .btn { 
	border: 1px solid rgba(0,0,0,.12); 
	box-shadow: 0 2px 0 rgba(0,0,0,.06) inset; 
}
.btn.primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); border-color: transparent; box-shadow: 0 8px 20px rgba(43,135,255,.3); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.06); }

/* Light mode ghost button hover */
[data-theme="light"] .btn.ghost:hover { 
	background: rgba(0,0,0,.06); 
}
.btn.small { padding: 8px 12px; border-radius: 10px; font-size: 14px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

/* Light mode card borders */
[data-theme="light"] .card { 
	border: 1px solid rgba(0,0,0,.06); 
}

/* Light mode testimonial borders */
[data-theme="light"] .testimonial-slider .testimonial { 
	border: 1px solid rgba(0,0,0,.06); 
}
.card h3 { margin: 8px 0 6px; }
.card p { margin: 0; color: var(--muted); }

/* Portfolio */
.portfolio-preview .grid { grid-template-columns: repeat(3, 1fr); }
.project { position: relative; overflow: hidden; border-radius: 12px; }
.project img { width: 100%; height: 220px; object-fit: cover; filter: grayscale(.1) contrast(1.05); }
.project .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65)); font-size: 14px; }

/* Metrics & badges */
.metrics { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.metrics .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.metric { padding: 16px 10px; }
.metric .num { font-size: clamp(22px, 3.2vw, 28px); font-weight: 800; color: var(--accent); }
.metric .label { color: var(--muted); font-size: 13px; }
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; filter: grayscale(1) brightness(.9); opacity: .85; }
.badges img { width: 100%; height: 56px; object-fit: contain; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 8px; }

/* Testimonials */
.testimonial-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.testimonial { scroll-snap-align: start; }
.testimonial .who { font-weight: 600; margin-top: 8px; }
.testimonial .company { color: var(--muted); font-size: 13px; }

/* Footer */
.footer { margin-top: 40px; background: #0a0d12; border-top: 1px solid rgba(255,255,255,.06); transition: background 0.3s ease; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 0; }
.footer .small { color: var(--muted); font-size: 13px; padding: 12px 0 24px; border-top: 1px solid rgba(255,255,255,.06); }

/* Light mode footer */
[data-theme="light"] .footer { 
	background: #f8fafc; 
	border-top: 1px solid rgba(0,0,0,.1); 
}
[data-theme="light"] .footer .small { 
	border-top: 1px solid rgba(0,0,0,.1); 
}

/* Responsive */
@media (max-width: 992px) { .feature-grid, .portfolio-preview .grid, .footer .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
	.nav { padding: 12px 14px; }
	.nav-links { display: none; }
	.section { padding: 46px 0; }
	.feature-grid, .portfolio-preview .grid, .footer .cols { grid-template-columns: 1fr; }
	.hero { height: 64vh; }
	
	/* Mobile metrics section */
	#metrics-section .grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

/* Forms */
label { display: grid; gap: 6px; margin-bottom: 12px; }
input, textarea, select { background: var(--bg-elev); color: var(--text); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px 12px; font: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,135,255,.15); }

/* Light mode form inputs */
[data-theme="light"] input, 
[data-theme="light"] textarea, 
[data-theme="light"] select { 
	background: #ffffff; 
	border: 1px solid rgba(0,0,0,.12); 
}

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-dialog { position: relative; margin: 6vh auto; width: min(720px, 92%); background: var(--bg-elev); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 10px; top: 8px; background: transparent; color: var(--text); border: none; font-size: 24px; cursor: pointer; }

/* Filter Bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-bar button { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #0e131a; color: var(--text); cursor: pointer; }
.filter-bar button.active { background: var(--primary); border-color: var(--primary); }

/* Slider tweaks */
.testimonial-slider { scroll-behavior: smooth; }
.testimonial-slider:hover { cursor: grab; }
/* Old modal styles removed - using consolidated modal styles above */


/* Hero styles consolidated - removed duplicate */

.hero-video {
	position: absolute;
	top: 0;
	left: 0;
  height: 100vh; /* Viewport (Ekran) yüksekliğini %100 kaplamasını sağlar */
  width: 100vw;  /* Ekran genişliğini %100 kaplamasını sağlar */
	object-fit: cover; /* Video boyutunu kırpmadan ekrana oturt */
	z-index: 0;
	filter: brightness(0.6); /* Arka plan videosunu biraz karartır, yazıların okunmasını kolaylaştırır */
}

.hero-overlay {
	position: relative;
	z-index: 1;
	max-width: 80%;
	margin: 0 auto;
	animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero p.lead {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	color: #f0f0f0;
}

.hero-eyebrow {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: #ffd700;
	margin-bottom: 0.75rem;
}

.hero-ctas {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Old btn styles removed - using consolidated btn styles above */

/* Fade-in animasyonu */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2.2rem;
	}
	.hero p.lead {
		font-size: 1rem;
	}
	.hero-overlay {
		max-width: 90%;
	}
}


/* ===== FIXED CLEAN PORTFOLIO DESIGN ===== */
.section {
	padding: 80px 0;
	position: relative;
}

.section-title {
	font-size: 2.2rem;
	text-align: center;
	margin-bottom: 30px;
	position: relative;
}
.section-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: #00bcd4;
	margin: 10px auto 0;
	border-radius: 3px;
}

/* --- PORTFOLIO --- */
.portfolio-preview {
	background: #f8f9fb;
}
.portfolio-preview .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.portfolio-preview .grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
	margin-top: 40px;
}

.portfolio-preview .card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-preview .card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-preview .card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

/* Overlay (project name) */
.portfolio-preview .card .overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.portfolio-preview .card:hover .overlay {
	opacity: 1;
}

/* Toolbar (top-right buttons) */
.portfolio-preview .card .tbar {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.portfolio-preview .card:hover .tbar {
	opacity: 1;
}
.portfolio-preview .card .tbar button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.2s ease, transform 0.2s ease;
}
.portfolio-preview .card .tbar button:hover {
	background: #00bcd4;
	transform: scale(1.1);
}

/* --- CLIENT BADGES --- */
.badges {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 60px;
	padding: 20px 0;
}
.badges img {
	height: 60px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.7;
	transition: all 0.3s ease;
}
.badges img:hover {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
	.portfolio-preview .grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 20px;
	}
	.portfolio-preview .card img {
		height: 180px;
	}
	.badges img {
		height: 45px;
	}
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonial-slider .testimonial {
    min-width: 300px;
    flex-shrink: 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    transition: transform 0.3s;
}

.testimonial-slider .testimonial p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.testimonial-slider .testimonial .who {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.testimonial-slider .testimonial .company {
    font-size: 0.8rem;
    color: var(--muted);
}


.footer a {
	color: #fff;           /* beyaz yapar */
	text-decoration: none; /* alt çizgiyi kaldırır */
}

.footer a:hover {
	text-decoration: underline; /* istersen hover'da alt çizgi ekler */
}




#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loading-overlay .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #00bcd4;
  border-radius: 50%;
  width: 50px; height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}






/* ==== SERVICES PAGE MODERN DARK STYLE ==== */

/* ==== CNC PORTFOLIO SECTION ==== */



.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  transition: all 0.8s ease;
  cursor: pointer;
  transform-origin: center center;
  z-index: 1;
}

.project {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.5s ease;
}

.media-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.project video,
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: all 0.5s ease;
}

.project:hover video,
.project:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: white;
  pointer-events: none;
  transition: all 0.3s ease;
}

.project:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.2);
}

.meta {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  text-align: center;
  font-size: 14px;
  padding: 4px 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .project {
    width: 150px;
    height: 150px;
  }
}



.project {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  transition: all 0.8s ease;
  cursor: pointer;
  transform-origin: center center;
  z-index: 1;
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.85;
  border-radius: 14px;
  transition: all 0.8s ease;
}

.project img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.85;
  border-radius: 14px;
  transition: all 0.8s ease;
}


/* === Hover Effect: Sadece belirli kartlarda büyütme efekti === */
/* Services, Portfolio ve About sayfalarındaki kartlar için hover efekti */
.feature-grid .card:hover,
#services-grid .card:hover,
#portfolio-grid .card:hover,
body[data-page="about"] .card:hover {
  z-index: 999;
  transform: scale(1.5); /* ✅ güçlü büyütme efekti */
  box-shadow: 0 0 100px rgba(0, 188, 212, 0.4);
  background: var(--card) !important; /* Arka planı koru */
}

/* Form kartlarında hover efekti OLMASIN */
#contact-form,
#contact-form:hover,
#quote-form,
#quote-form:hover {
  transform: none !important;
  box-shadow: var(--shadow) !important;
  background: var(--card) !important;
  z-index: auto !important;
}

/* === Hover Effect: Kart ekranın %50’sini dolduracak kadar büyür === */
.project:hover {
  z-index: 999;
  transform: scale(1.5); /* ✅ güçlü büyütme efekti */
  box-shadow: 0 0 100px rgba(0, 188, 212, 0.4);
}

.feature-grid .card:hover img,
#services-grid .card:hover img,
#portfolio-grid .card:hover img,
body[data-page="about"] .card:hover img {
  opacity: 1;
  transform: scale(1.2);
  filter: brightness(1.2);
}


.project:hover img {
  opacity: 1;
  transform: scale(1.2);
  filter: brightness(1.2);
}


/* ========================================= */
/* ==== SERVICES PAGE MODERN DARK MODAL ==== */
/* ========================================= */

/* ================================================= */
/* ==== FİNAL VE OPTİMİZE EDİLMİŞ MODAL STİLLERİ ==== */
/* ================================================= */

/* 1. Modal Yapısının Tam Ekran Arka Planı */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    z-index: 1050;
    transition: opacity 0.3s ease-in-out; 
}

/* Modal görünürlük geçişleri */
.modal[hidden] .modal-backdrop { opacity: 0; visibility: hidden; }
.modal:not([hidden]) .modal-backdrop { opacity: 1; visibility: visible; }

/* 2. Modal Ana Penceresi (Dialog) - TEK KOYU KART */
.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    
    /* TEMA VE ŞEKİL */
    background: var(--bg-elev);
    border-radius: 16px; 
    box-shadow: var(--shadow), 0 0 100px rgba(0, 188, 212, 0.2); 
    border: 1px solid rgba(255,255,255,.08); 
    
    padding: 30px;
    z-index: 1060;
    transition: opacity 0.2s ease-in-out; /* Sadece opacity geçişi */
}

/* 3. Kapatma Butonu Stili */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #ffffff;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    line-height: 1;
    z-index: 1070;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: #00bcd4;
}

/* 4. İçerik Alanı ve Eski Kart Stillerini Ezme */
#service-modal-content,
#portfolio-modal-content {
    color: #e0e0e0;
    line-height: 1.7;
    /* Gerekirse içerik div'inin padding ve marginlerini sıfırla */
    padding: 0 !important; 
    margin: 0 !important;
}

/* Eski/İç İçe Kart Yapılarını SIFIRLA */
/* Bu, iki kartın görünmesini engelleyen en kritik kurallardır. */
#service-modal-content > div:first-child,
#service-modal-content .card,
#service-modal-content .project,
#portfolio-modal-content > div:first-child,
#portfolio-modal-content .card,
#portfolio-modal-content .project {
    all: unset; /* Bütün eski stilleri sıfırla */
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    transform: none !important; /* Hover efektlerini kaldır */
}

/* Modal içindeki kartlarda hover efekti OLMASIN */
#service-modal-content .card:hover,
#portfolio-modal-content .card:hover {
    transform: none !important;
    box-shadow: none !important;
    z-index: auto !important;
}


/* 5. Görsel Kapsayıcısını ve Görseli Büyütme */

/* JS'inizdeki .detail-media-full-size veya görseli sarmalayan her şeyi tam genişlik yap */
#service-modal-content .detail-media-full-size,
#service-modal-content img,
#portfolio-modal-content .detail-media-full-size,
#portfolio-modal-content img {
    width: 100% !important; 
    max-height: 400px; /* Estetik yükseklik sınırı */
    display: block !important;
    margin: 0 auto 20px auto !important; /* Alt boşluk */
    border-radius: 12px;
    border: none !important;
}

/* Görselin kendisi */
#service-modal-content img,
#portfolio-modal-content img {
    height: 100%;
    object-fit: cover !important; /* Görselin kapsayıcıyı doldurmasını sağla */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); 
}

/* 6. Başlık ve Açıklama Stilleri (Merkezlenmiş) */
#service-modal-content h2, 
#service-modal-content h3,
#portfolio-modal-content h2, 
#portfolio-modal-content h3 {
    color: #00bcd4;
    text-align: center;
    margin-top: 25px; 
    margin-bottom: 15px;
    border-bottom: none; /* Alt çizgiyi kaldır */
    padding-bottom: 0;
}

#service-modal-content .detail-description p,
#portfolio-modal-content .detail-description p {
    color: #cccccc;
    text-align: center; 
    font-size: 1rem;
    padding: 0 10px;
}

/* Responsive Düzenleme (Mobil Uyumu) */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        padding: 20px 15px;
    }
    .modal-close {
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    #service-modal-content img,
    #portfolio-modal-content img {
        max-height: 300px; /* Mobil için görseli biraz küçült */
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .section-title { font-size: 1.8rem; }
  .card img { height: 200px; }
  .feature-grid .card:hover,
  #services-grid .card:hover,
  #portfolio-grid .card:hover,
  body[data-page="about"] .card:hover { 
    transform: scale(1.2); /* mobilde daha az büyüsün */
  }
  .overlay p { font-size: 0.85rem; }
  .badges img { height: 40px; }
}




/* === TIMELINE PAGE === */
.timeline-section {
	padding: 80px 0;
	min-height: 100vh;
	position: relative;
}

.timeline-container {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 0;
}

.timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, 
		rgba(0, 188, 212, 0.3) 0%, 
		rgba(0, 188, 212, 0.8) 50%, 
		rgba(0, 188, 212, 0.3) 100%);
	transform: translateX(-50%);
	box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
	border-radius: 2px;
}

.timeline-step {
	position: relative;
	margin: 80px 0;
	opacity: 0.5;
	transform: scale(0.9);
	transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-step.focused {
	opacity: 1;
	transform: scale(1);
}

.timeline-step:nth-child(odd) .timeline-content {
	margin-right: 60%;
	text-align: right;
}

.timeline-step:nth-child(even) .timeline-content {
	margin-left: 60%;
	text-align: left;
}

.timeline-connector {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	background: var(--card);
	border: 3px solid rgba(0, 188, 212, 0.6);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
	z-index: 10;
}

.timeline-step.focused .timeline-connector {
	border-color: #00bcd4;
	box-shadow: 0 0 30px rgba(0, 188, 212, 0.8);
	transform: translate(-50%, -50%) scale(1.3);
}

.timeline-content {
	background: var(--card);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 16px;
	padding: 30px;
	box-shadow: var(--shadow);
	position: relative;
	transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-step.focused .timeline-content {
	border-color: rgba(0, 188, 212, 0.3);
	box-shadow: var(--shadow), 0 0 40px rgba(0, 188, 212, 0.2);
}

.timeline-step-icon {
	font-size: 48px;
	margin-bottom: 20px;
	display: block;
	text-align: center;
	transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-step.focused .timeline-step-icon {
	transform: scale(1.2);
	filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.6));
}

.timeline-step h3 {
	font-size: 24px;
	margin: 0 0 15px 0;
	color: var(--text);
	transition: color 0.6s ease;
}

.timeline-step.focused h3 {
	color: #00bcd4;
}

.timeline-step p {
	color: var(--muted);
	line-height: 1.6;
	margin: 0;
	transition: color 0.6s ease;
}

.timeline-step.focused p {
	color: var(--text);
}

.timeline-step-number {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary);
	color: white;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
	transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-step.focused .timeline-step-number {
	background: #00bcd4;
	transform: translateX(-50%) scale(1.2);
	box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
}

/* Light mode timeline */
[data-theme="light"] .timeline-line {
	background: linear-gradient(180deg, 
		rgba(37, 99, 235, 0.3) 0%, 
		rgba(37, 99, 235, 0.8) 50%, 
		rgba(37, 99, 235, 0.3) 100%);
	box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

[data-theme="light"] .timeline-connector {
	border-color: rgba(37, 99, 235, 0.6);
}

[data-theme="light"] .timeline-step.focused .timeline-connector {
	border-color: #2563eb;
	box-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
}

[data-theme="light"] .timeline-step.focused .timeline-content {
	border-color: rgba(37, 99, 235, 0.3);
	box-shadow: var(--shadow), 0 0 40px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .timeline-step.focused h3 {
	color: #2563eb;
}

[data-theme="light"] .timeline-step.focused .timeline-step-number {
	background: #2563eb;
	box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

[data-theme="light"] .timeline-step.focused .timeline-step-icon {
	filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.6));
}

/* Responsive timeline */
@media (max-width: 768px) {
	.timeline-step:nth-child(odd) .timeline-content,
	.timeline-step:nth-child(even) .timeline-content {
		margin-left: 20%;
		margin-right: 20%;
		text-align: center;
	}
	
	.timeline-content {
		padding: 20px;
	}
	
	.timeline-step-icon {
		font-size: 36px;
	}
	
	.timeline-step h3 {
		font-size: 20px;
	}
}

/* === SERVICES PAGE === */