/* Global styles and CSS variables */
:root {
  --primary: #1a3a6e;
  --secondary: #0e6ba8;
  --accent: #00a8e8;
  --light: #f5f7fa;
  --dark: #2c3e50;
  --success: #2ecc71;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}
/* Dark mode variables (applied when body has .dark-mode) */
body.dark-mode {
  --primary: #f5f7fa;
  --secondary: #a0a0a0;
  --accent: #00a8e8;
  --light: #2c3e50;
  --dark: #f5f7fa;
}

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

body {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 10px;
}
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background-color: var(--accent);
}
h3 {
  font-size: 1.5rem;
  color: var(--secondary);
}
p {
  margin-bottom: 1rem;
}
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--accent);
}

/* Header & Navigation */
header {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition-speed);
}
header.dark-mode {
  background-color: var(--dark);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}
.logo-text {
  font-size: 1.5rem;
  color: var(--primary);
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 30px;
}
.nav-links a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: width var(--transition-speed);
}
.nav-links a:hover::after {
  width: 100%;
}
/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  transition: transform var(--transition-speed);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* Dark Mode Toggle Button */
.dark-mode-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 20px;
  background: none;
  border: none;
  color: var(--dark);
  transition: color var(--transition-speed);
}
.dark-mode-toggle:hover {
  color: var(--accent);
}

/* Combined Hero and About Section */
#about {
  scroll-margin-top: 100px;
}
.hero-about {
  min-height: 100vh;
  position: relative;
  padding-top: 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 58, 110, 0.9) 0%, rgba(0, 168, 232, 0.8) 100%), 
              url('https://images.unsplash.com/photo-1501290741922-b56c0d0884af?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 95%);
  z-index: -1;
  /* Parallax effect */
  background-attachment: fixed;
}
.hero-about-content {
  display: flex;
  flex-direction: column;
  padding: 80px 0;
  color: white;
}
.profile-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}
.hero-content {
  max-width: 60%;
}
.profile-img-container {
  width: 35%;
  text-align: center;
}
.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: white;
}
.hero-content h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: white;
}
.hero-content h2::after {
  display: none;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.about-content {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.5s;
}
/* Fade-in Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  margin-right: 15px;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background-color: #0089c3;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: white;
}
.btn-outline {
  background-color: light blue;
  border: 1px solid white;
}
.btn-outline:hover {
  background-color: white;
  color: var(--primary);
}
.social-icons {
  margin-top: 30px;
}
.social-icons a {
  color: white;
  font-size: 1.5rem;
  margin-right: 20px;
  transition: transform var(--transition-speed);
}
.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Education Section */
#education {
  scroll-margin-top: 150px;
}
.education-section {
  background-color: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: -100px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 1s;
}
.education-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
  position: relative;
}
.education-section h3::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 60px;
  background-color: var(--accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.education-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border-left: 4px solid var(--primary);
}
.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.education-year {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 5px;
}
.education-degree {
  font-weight: 700;
  margin-bottom: 5px;
}

/* Publications Section */
#publications {
  scroll-margin-top: 100px;
}
  
.tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  transition: color var(--transition-speed);
}
.tab-btn.active {
  color: var(--accent);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
}
.publication-item {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  overflow: hidden;
}
.publication-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.publication-journal {
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 5px;
}
.publication-authors {
  font-weight: 500;
  margin-bottom: 10px;
}
.publication-doi {
  margin-top: 10px;
}
.publication-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--accent);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-bottom-left-radius: 8px;
}

/* Projects Section */
#projects {
  scroll-margin-top: 100px; /* Adjust px as desired */
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  margin-bottom: 30px;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.project-header {
  background-color: var(--primary);
  color: white;
  padding: 20px;
}
.project-title {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: white;
}
.project-agency {
  font-style: italic;
  opacity: 0.9;
}
.project-body {
  padding: 20px;
}
.project-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.project-detail {
  margin-bottom: 10px;
}
.project-label {
  font-weight: 600;
  color: var(--secondary);
}

/* Presentations Section */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 1.5s;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
  left: 0;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(odd)::after {
  right: -12px;
  top: 20px;
}
.timeline-item:nth-child(even)::after {
  left: -12px;
  top: 20px;
}
.timeline-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.timeline-year {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 5px;
}

/* Activities Section */
#activities {
  scroll-margin-top: 100px;
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.activity-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  height: 100%;
}
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.activity-img {
  height: 200px;
  overflow: hidden;
}
.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.activity-card:hover .activity-img img {
  transform: scale(1.05);
}
.activity-content {
  padding: 20px;
}
.activity-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info {
  margin-bottom: 30px;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-heading {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}
.footer-links a:hover {
  color: white;
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }
  .profile-img-container {
    width: 100%;
    margin-bottom: 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 18px;
  }
}
@media (max-width: 768px) {
  .hero-bg {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: right var(--transition-speed);
    box-shadow: var(--shadow);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    margin: 15px 0;
  }
  .hamburger {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content h2 {
    font-size: 1.5rem;
  }
  .education-section {
    margin-top: -50px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* Banner Title Styling */
.banner-title {
  background-color: var(--accent); /* or another color */
  color: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  text-align: center;
}

.banner-title h2 {
  margin: 0;
  font-size: 1.8rem;
  /* Adjust as needed */
}

.minimal-banner {
  /* Remove or comment out the border */
  /* border-bottom: 1px solid #ddd; */
  margin-bottom: 1.5rem;
  padding-bottom: 0; /* optional */
}

.minimal-banner h2 {
  display: inline-block;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.3rem; /* small space above the underline */
}

/* Override the global h2::after line specifically for .minimal-banner */
.minimal-banner h2::after {
  content: none !important;
}

/* Hide inactive tabs, show only the active one */
.tab-pane {
  display: none; /* Hide all tabs by default */
}
.tab-pane.active {
  display: block; /* Show only the active tab */
}

/* MEMBERSHIPS SECTION (Creative Grid Style) */
#memberships {
  scroll-margin-top: 100px;
}
.memberships-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* or any color/gradient you like */
}

.memberships-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}

/* The grid container for membership cards */
.memberships-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* The minmax ensures cards wrap nicely on smaller screens. */
}

/* Individual membership card styling */
.membership-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #cfd9df 100%);
  /* The subtle gradient background. Change to a solid color if you prefer. */
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

/* Slight hover lift effect */
.membership-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Icon styling */
.membership-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-right: 15px;
}

/* Content next to the icon */
.membership-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.membership-content a {
  display: inline-block;
  margin-top: 5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.membership-content a:hover {
  color: var(--secondary);
}
/* ============================================= *//* == STYLES FOR "ÖZGÜR WRITES" LISTING PAGE  == *//* ============================================= *//* Main container for the listing page */.ow-page-container {  padding-top: 120px; /* Pushes content below the fixed header */  padding-bottom: 60px;  background-color: var(--light);}/* Page header section */.ow-header {  text-align: center;  margin-bottom: 50px;}.ow-header h1 {  font-size: 3rem;  color: var(--primary);}.ow-header h1::after { display: none; }.ow-header p {  font-size: 1.2rem;  color: var(--secondary);  max-width: 600px;  margin: 10px auto 0;}/* Grid layout for the post cards */.ow-posts-grid {  display: grid;  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));  gap: 30px;}/* Individual post card styling */.ow-card {  background-color: #fff;  border-radius: 10px;  box-shadow: var(--shadow);  overflow: hidden;  display: flex;  flex-direction: column;  transition: transform 0.3s ease, box-shadow 0.3s ease;}.ow-card:hover {  transform: translateY(-5px);  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);}.ow-card-image img {  width: 100%;  height: 200px;  object-fit: cover;}.ow-card-content {  padding: 25px;  display: flex;  flex-direction: column;  flex-grow: 1; /* Allows the button to stick to the bottom */}.ow-card-title {  font-size: 1.4rem;  color: var(--primary);  margin-bottom: 10px;}.ow-card-meta {  font-size: 0.9rem;  color: #666;  margin-bottom: 15px;}.ow-card-meta .meta-dot {  margin: 0 8px;}.ow-card-snippet {  color: var(--dark);  flex-grow: 1; /* Pushes the button down */  margin-bottom: 20px;}.ow-card-button {  display: inline-block;  background-color: var(--accent);  color: white;  padding: 10px 20px;  border-radius: 5px;  text-align: center;  font-weight: 500;  align-self: flex-start; /* Aligns button to the left */}.ow-card-button:hover {  background-color: #0089c3;  color: white;}/* ============================================= *//* == STYLES FOR THE SINGLE POST PAGE         == *//* ============================================= */.single-post-container {  padding-top: 120px; /* Space for the fixed header */  padding-bottom: 60px;  background-color: #f5f7fa;}.single-post-header {  text-align: center;  margin-bottom: 40px;}.single-post-header h1 {  font-size: 3rem;  color: var(--primary);}.single-post-header h1::after { display: none; }.single-post-meta {  margin-top: 15px;  color: #666;}.single-post-meta .meta-dot {  margin: 0 10px;}.single-post-image {  margin-bottom: 40px;}.single-post-image img {  width: 100%;  max-height: 500px;  object-fit: cover;  border-radius: 10px;  box-shadow: var(--shadow);}.single-post-content {  background-color: #fff;  padding: 40px 50px;  max-width: 800px;  margin: 0 auto;  border-radius: 8px;  font-size: 1.1rem;  line-height: 1.8;}.single-post-content p {  margin-bottom: 1.5rem;}.single-post-content h2 {  font-size: 1.8rem;  margin-top: 2.5rem;  margin-bottom: 1rem;  color: var(--primary);}.single-post-content h2::after { display: none; }.back-link-container {  text-align: center;  margin-top: 50px;}/* ============================================= *//* == Floating "Özgür Writes" Sidebar         == *//* ============================================= */.floating-sidebar {  position: fixed;  top: 50%;  right: -280px; /* Hidden off-screen */  transform: translateY(-50%);  width: 320px;  z-index: 999;  transition: right 0.4s ease-in-out;}.floating-sidebar:hover {  right: 0; /* Slides in on hover */}.sidebar-toggle {  position: absolute;  left: -55px;  top: 50%;  transform: translateY(-50%);  width: 55px;  height: 100px;  background: linear-gradient(135deg, var(--accent), var(--secondary));  color: white;  display: flex;  flex-direction: column;  align-items: center;  justify-content: center;  border: none;  cursor: pointer;  border-radius: 15px 0 0 15px;  box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.2);  font-size: 1.2rem;}.sidebar-toggle span {  font-size: 0.8rem;  font-weight: 600;  margin-top: 8px;  text-align: center;  line-height: 1.2;}.sidebar-content {  background: rgba(255, 255, 255, 0.8);  backdrop-filter: blur(10px);  -webkit-backdrop-filter: blur(10px);  border: 1px solid rgba(255, 255, 255, 0.2);  height: 400px;  padding: 25px;  border-radius: 15px;  box-shadow: var(--shadow);  color: var(--dark);  overflow-y: auto;}.sidebar-content h3 {  margin-top: 0;  margin-bottom: 20px;  text-align: center;  border-bottom: 2px solid var(--accent);  padding-bottom: 10px;}.post-list {  list-style: none;  padding: 0;  margin: 0;}.post-list li {  margin-bottom: 20px;  padding-bottom: 15px;  border-bottom: 1px solid rgba(0, 0, 0, 0.1);}.post-list li:last-child {  border-bottom: none;}.post-list a {  font-weight: 600;  color: var(--secondary);  text-decoration: none;}.post-list a:hover {  color: var(--accent);}.reading-time {  font-size: 0.8rem;  opacity: 0.8;  display: flex;  align-items: center;  margin-top: 8px;}.reading-time i {  margin-right: 5px;}@media (max-width: 1200px) {  .floating-sidebar {    display: none;  }}