/* Base & Corporate Reset */
:root {
  --primary: #0D86C8; /* Kept Original Blue */
  --primary-hover: #0b6a9e;
  --accent: #d32f2f; /* Deep Red from Logo */
  --secondary: #e2e8f0;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-light: #ffffff;
  --bg-slate: #f8fafc;
  --border-color: #e2e8f0;
  --transition: all 0.25s ease-in-out;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.text-center {
  text-align: center;
}

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-gradient {
  color: var(--primary); /* Replaced gradient with solid primary for corporate look */
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

/* Corporate underline for titles */
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 60px;
  background-color: var(--accent);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* Corporate Cards (Replacing Glassmorphism) */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header::before {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  background: var(--primary); /* Corporate top bar */
}

.header.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .logo img {
  max-height: 70px;
  display: block;
}

.logo-text {
  font-family: 'Caveat', cursive;
  color: var(--accent);
  font-size: 1.9rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  margin-top: 5px;
}

.footer-logo img {
  max-height: 48px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

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

/* Dropdown styling */
.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 20px; /* safe hover area */
  margin-bottom: -20px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 2px;
  border-top: 3px solid var(--primary);
  flex-direction: column;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.dropdown-content a::after {
  display: none !important;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--bg-slate);
  color: var(--primary);
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark); /* Fallback */
  padding-top: 80px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8));
}

.hero-content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  text-align: left;
}

.hero-stats-grid {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hero-stats-grid .stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.hero-stats-grid .stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats-grid .stat-card p {
  color: #cbd5e1;
}

.hero-title {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  border-left: 6px solid var(--accent);
  padding-left: 1.5rem;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

/* Corporate Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  border-radius: 2px; /* Sharp corners */
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--text-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* General Section rules */
.section {
  padding: 5rem 0;
}

.bg-slate {
  background-color: var(--bg-slate);
}

.dark-section {
  background-color: var(--bg-dark);
  color: #fff;
}

.dark-section .section-title, .dark-section h3 {
  color: #fff;
}

.dark-section .section-title::after {
  background-color: var(--primary);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-card h3 {
  font-size: 2.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-card p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-glass {
  background: #fff;
  color: var(--text-dark);
  border-top: 4px solid var(--accent);
  border-radius: 2px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-glass h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-glass p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.link-arrow {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.link-arrow:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.dark-section .service-card {
  background: #1e293b;
  border-color: #334155;
  color: #fff;
}

.dark-section .service-card h3 {
  color: #fff;
}

.dark-section .service-card ul li a {
  color: #94a3b8;
}

.dark-section .service-card ul li a:hover {
  color: var(--primary);
}

.service-card ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card ul li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.service-card ul li a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.service-card ul li a:hover {
  color: var(--primary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  background: #fff;
}

.project-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.project-img-placeholder {
  height: 240px;
  background: #cbd5e1;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.project-content {
  padding: 1.5rem;
  border-top: 3px solid var(--primary);
}

.project-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.project-content p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* News Section */
.news-section {
  background: var(--bg-slate);
}

.news-item {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: var(--transition);
}

.news-item img {
  width: 250px;
  height: 150px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.news-item h3 a:hover {
  color: var(--primary);
}

/* Forms */
.form-header {
  background-color: var(--primary);
  color: #fff;
  padding: 0.8rem 1.25rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  font-weight: 600;
}

.form-control, .form-input {
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 0.75rem 1rem;
}

.form-control:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.contact-info-card, .contact-form, [style*="background: #fff"] {
  border-radius: 2px !important; /* Overriding previous inline styles to force sharp corners */
  border: 1px solid var(--border-color) !important;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer h3.logo-text {
  color: var(--accent);
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 30px;
  background-color: var(--accent);
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul li a {
  color: #94a3b8;
}

.footer ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 0.875rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: inherit;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.1);
}

.newsletter-form button {
  padding: 0.875rem;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form button:hover {
  background: var(--primary-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .footer-grid, .hero-content-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    margin-top: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
    padding-left: 1rem;
    border-left-width: 4px;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* Animations (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Ucay Sektörlerimiz Grid */
.p-0 { padding: 0 !important; }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100vw;
  height: 600px; /* Large vertical cards */
}

.sector-card {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem;
  text-decoration: none;
}

.sector-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.overlay-gold { background: linear-gradient(180deg, rgba(214,40,40,0.1) 0%, rgba(214,40,40,0.85) 100%); } /* Red brand */
.overlay-blue { background: linear-gradient(180deg, rgba(13,134,200,0.1) 0%, rgba(13,134,200,0.85) 100%); } /* Blue brand */
.overlay-pink { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(13,134,200,0.9) 100%); }
.overlay-cyan { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(214,40,40,0.9) 100%); }
.overlay-dark { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15,23,42,0.95) 100%); }

.sector-content {
  position: relative;
  z-index: 2;
  color: #fff;
  transform: translateY(10px);
  transition: transform 0.5s ease;
}

.sector-content h3 {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  color: #ffffff !important;
}

.sector-content p {
  font-size: 1rem;
  opacity: 0.9;
  color: #ffffff !important;
}

/* Hover effects */
.sector-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  z-index: 0;
}

.sector-card:hover::before {
  transform: scale(1.1);
}

.sector-card:hover .sector-overlay {
  opacity: 0.85;
}

.sector-card:hover .sector-content {
  transform: translateY(0);
}

/* Referanslar Slider */
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 40px)); } /* Adjusted for gap 80px */
}

@keyframes scrollLogosReverse {
  0% { transform: translateX(calc(-50% - 40px)); }
  100% { transform: translateX(0); }
}

.logo-marquee-track img:hover {
    transform: scale(1.05);
}

/* ---- VIBRANT OVERHAUL ADDITIONS ---- */
.ucay-references {
    background: #ffffff !important;
    color: var(--text-dark) !important;
}
.ucay-references .ucay-section-title {
    color: var(--text-dark) !important;
    text-shadow: none;
}
.logo-marquee-wrapper {
    background: #f8fafc !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}
.logo-marquee-track img {
    height: 75px !important;
    width: 150px !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
}
.logo-marquee-track img:hover {
    transform: scale(1.05);
}

/* Animations & Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}


.kutuphane-card p { line-height: 1.8; margin-bottom: 1.5rem; }


.kutuphane-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
    background-color: var(--accent);
    padding: 0.6rem 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--accent);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
    margin-top: auto;
    width: fit-content;
}

.kutuphane-btn:hover {
    background-color: transparent;
    color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

.kutuphane-card {
    display: flex;
    flex-direction: column;
}

