html {
    overflow-x: hidden;
}

/* Main Styles for ishak.it - Tron Theme */
:root {
  /* Light Mode Colors (User Specified - DarkTurquoise) */
  --bg-color: #FFFFFF; /* White */
  --text-color: #000000; /* Black for base text */
  --primary-color: #00CED1; /* DarkTurquoise */
  --secondary-color: #00CED1; /* DarkTurquoise - using primary for consistency */
  --accent-color: #FFA500; /* Orange (Kept for contrast) */
  --positive-color: #228B22; /* Waldgrün (Kept for contrast) */
  --negative-color: #B22222; /* Feuerrot (Kept for contrast) */
  --interface-color: #CCCCCC; /* Hellgrau */
  --interface-light: #f8f9fa; /* Keep light grey for some backgrounds */
  --link-hover-color: #00CED1; /* DarkTurquoise for hover */
  --button-hover-bg: #00CED1;
  --button-hover-border: #00CED1;
  --footer-bg: #1a1a1a; /* Darker footer for contrast */
  --footer-text: #CCCCCC;
  --footer-link-hover: var(--primary-color);

  --transition: all 0.3s ease;
}

body.dark-mode {
  /* Dark Mode Colors (User Specified - DarkTurquoise) */
  --bg-color: #1E1E1E; /* Slightly Lighter Black (Kept from previous adjustment) */
  --text-color: #EAEAEA; /* Brighter Text (Kept from previous adjustment) */
  --primary-color: #00CED1; /* DarkTurquoise */
  --secondary-color: #00CED1; /* DarkTurquoise - using primary for consistency */
  --accent-color: #FF5F1F; /* Neonorange (Kept for contrast) */
  --positive-color: #00FF00; /* Neongrün (Kept for contrast) */
  --negative-color: #FF0000; /* Leuchtrot (Kept for contrast) */
  --interface-color: #333333; /* Lighter Anthrazit (Kept from previous adjustment) */
  --interface-light: #2A2A2A; /* Lighter Dark Grey (Kept from previous adjustment) */
  --link-hover-color: #00CED1; /* DarkTurquoise for hover */
  --button-hover-bg: #00CED1;
  --button-hover-border: #00CED1;
  --footer-bg: #1E1E1E; /* Match new bg-color (Kept from previous adjustment) */
  --footer-text: #B0B0B0; /* Adjusted footer text (Kept from previous adjustment) */
  --footer-link-hover: var(--primary-color);

  /* Update RGB for dark mode box-shadow */
  --rgb-primary: 0, 206, 209; /* #00CED1 */
}

/* Logo Switching for Light/Dark Mode */
.logo-light-mode {
  display: block;
  max-height: 50px;
  width: auto;
}

.logo-dark-mode {
  display: none;
  max-height: 50px;
  width: auto;
}

body.dark-mode .logo-light-mode {
  display: none;
}

body.dark-mode .logo-dark-mode {
  display: block;
}

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%; /* ADDED to prevent body exceeding viewport */
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color); /* Ensure headings inherit text color */
}

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

a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

.btn {
    transition: var(--transition);
    border-radius: 0; /* Tron style - sharp edges */
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-color); /* Text color contrasts with primary */
}

.btn-primary:hover {
  background-color: var(--button-hover-bg);
  border-color: var(--button-hover-border);
  color: #000000; /* Black text on hover */
}

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

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

/* Header & Navigation */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background-color: var(--bg-color) !important; /* Use variable, override Bootstrap */
  border-bottom: 1px solid var(--interface-color);
}

.navbar-scrolled {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.dark-mode .navbar-scrolled {
    box-shadow: 0 2px 5px rgba(0, 245, 255, 0.1); /* Neon glow effect */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo-container {
    cursor: pointer;
}

.navbar-brand span {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-toggler {
  border: 1px solid var(--interface-color);
}

body.dark-mode .navbar-toggler {
  border: 1px solid #FFFFFF;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='" + "var(--text-color)" + "' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\\' viewBox=\'0 0 30 30\\'%3e%3cpath stroke=\\\'%23FFFFFF\\\\' stroke-linecap=\\'round\\' stroke-miterlimit=\\'10\\' stroke-width=\\'2\\' d=\\'M4 7h22M4 15h22M4 23h22\\'/%3e%3c/svg%3e");
}

.navbar .navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar .navbar-nav .nav-link:hover {
  color: var(--primary-color); /* Text color changes to primary on hover */
}

.navbar .navbar-nav .nav-link.active {
  color: #000000; /* Active link text is black */
  /* The ::after pseudo-element for underline will still use var(--primary-color) as defined below */
}

.navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px); /* Adjust for navbar height */
  padding-top: 120px; /* Space below navbar */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  background-color: var(--interface-light);
  position: relative;
  overflow: hidden; /* This should prevent hero content from causing horizontal scroll */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Light mode gradient */
  background: linear-gradient(135deg, rgba(27, 3, 163, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.7;
}

body.dark-mode .hero::before {
  /* Dark mode gradient */
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--text-color);
  opacity: 0.8;
}

.hero-buttons .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.5rem;
}

/* General Section Styling */
section {
    padding: 5rem 0;
    overflow-x: hidden; /* ADDED to prevent sections from causing overflow */
}

.bg-light {
    background-color: var(--interface-light) !important;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  color: var(--text-color);
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Card Styling */
.card {
    background-color: var(--bg-color);
    border: 1px solid var(--interface-color);
    border-radius: 0; /* Tron style */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

body.dark-mode .card {
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.08);
}

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

body.dark-mode .card:hover {
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
}

/* Services Section */
.service-item {
  padding: 0; /* Padding is now in card-body */
  border-radius: 0;
  box-shadow: none; /* Shadow is on card */
  transition: none;
  height: 100%;
  background-color: transparent; /* Background is on card */
}

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

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* About Section */
.about-img {
  border-radius: 0; /* Tron style */
  overflow: hidden;
  /* border: 1px solid var(--interface-color); */ /* Removed border as per user request */
}

.about-img .ratio {
    background-color: var(--interface-light);
}

.about-content h2 {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.about-info-item {
  margin-bottom: 1rem;
  color: var(--text-color);
  opacity: 0.9;
}

.about-info-item strong {
  margin-right: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Experience Section */
.experience-item {
  padding: 0; /* Padding is now in card-body */
  border-radius: 0;
  box-shadow: none; /* Shadow is on card */
  margin-bottom: 2rem;
  background-color: transparent; /* Background is on card */
}

.experience-item h3 {
  color: var(--primary-color);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    height: 100%;
    width: 4px;
    background: var(--interface-color);
}

body.dark-mode .timeline::before {
    background: var(--interface-color);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    top: 16px;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid var(--bg-color);
    z-index: 1;
}

body.dark-mode .timeline-badge {
    border-color: var(--bg-color);
}

.timeline-panel {
    margin-left: 60px;
    position: relative;
    background: var(--bg-color);
    border: 1px solid var(--interface-color);
    padding: 1.5rem;
    border-radius: 0; /* Tron style */
}

.timeline-heading h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.timeline-heading p {
    margin-bottom: 0.5rem;
}

.timeline-body p {
    margin-bottom: 0;
    color: var(--text-color);
    opacity: 0.8;
}

.progress {
    height: 8px;
    border-radius: 0; /* Tron style */
    background-color: var(--interface-color);
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 0;
}

.skill-item span {
    color: var(--text-color);
    opacity: 0.9;
}

/* Projects Section */
.project-featured {
    border: none;
}

.project-image {
    background-color: transparent;
}

.project-meta .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--bg-color);
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--bg-color);
}

body.dark-mode .badge.bg-primary {
    color: #000000;
}
body.dark-mode .badge.bg-secondary {
    color: #000000;
}

.quote {
  font-style: italic;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-color);
  opacity: 0.8;
}

.quote-author {
    font-style: normal;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
}

/* Testimonials Section */
.testimonial-item {
    background-color: var(--interface-light) !important;
    border: 1px solid var(--interface-color);
    border-radius: 0; /* Tron style */
}

.testimonial-content p {
    color: var(--text-color);
    opacity: 0.9;
}

.testimonial-author h4 {
    color: var(--text-color);
}

.testimonial-author p {
    color: var(--text-color);
    opacity: 0.7;
}

/* Contact Section */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 30px; /* Fixed width for alignment */
  text-align: center;
}

.contact-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact-info p {
    margin-bottom: 0;
    color: var(--text-color);
    opacity: 0.8;
}

.contact-form .form-control {
  border-radius: 0; /* Tron style */
  border: 1px solid var(--interface-color);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--rgb-primary), 0.25); /* Use primary color with alpha */
  border-color: var(--primary-color);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Calculate RGB from hex for box-shadow */
:root {
    --rgb-primary: 27, 3, 163; /* #1B03A3 */
}
body.dark-mode {
    --rgb-primary: 0, 245, 255; /* #00F5FF */
}

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

.contact-form .alert {
    border-radius: 0;
}

.alert-success {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

body.dark-mode .alert-success {
    color: #000000;
}

.alert-danger {
    background-color: var(--negative-color);
    color: #FFFFFF;
    border-color: var(--negative-color);
}

body.dark-mode .alert-danger {
    color: #000000;
}

/* Footer */
.footer {
  padding: 3rem 0 1rem 0;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--interface-color);
  overflow-x: hidden; /* ADDED to prevent footer from causing overflow */
}

.footer h4 {
  color: #FFFFFF; /* White heading in footer always */
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

body.dark-mode .footer h4 {
    color: var(--primary-color);
}

.footer p {
    color: var(--footer-text);
    opacity: 0.8;
}

.footer a {
  color: var(--footer-text);
  opacity: 0.9;
}

.footer a:hover {
  color: var(--footer-link-hover);
  opacity: 1;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer .bottom-text {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--interface-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Newsletter Form in Footer */
.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--interface-color);
    color: var(--footer-text);
    border-radius: 0;
}

body.dark-mode .newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.05);
}

.newsletter-form .form-control::placeholder {
    color: var(--footer-text);
    opacity: 0.6;
}

.newsletter-form .btn-primary {
    width: 100%;
}

.newsletter-form .form-check-label {
    font-size: 0.8rem;
    color: var(--footer-text);
    opacity: 0.7;
}

.newsletter-form .form-check-input {
    border-color: var(--interface-color);
}

/* Impressum & Datenschutz */
.legal-content {
  padding: 6rem 0;
  overflow-x: hidden; /* ADDED to prevent legal content from causing overflow */
}

.legal-content h2 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.9;
}

/* Logo SVG Styling */
.logo-container svg path[stroke="black"] {
    stroke: var(--text-color);
}
.logo-container svg circle {
    fill: var(--primary-color);
}
.logo-container svg path[stroke="#0080FF"] {
    stroke: var(--primary-color);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 1;
}

.slide-up {
    transform: translateY(30px);
    opacity: 1;
}

/* Trigger animations */
.animate-on-scroll.fade-in {
    opacity: 1;
}

.animate-on-scroll.slide-up {
    transform: translateY(0);
    opacity: 1;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .navbar .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .navbar .navbar-nav .nav-link::after {
        left: 0;
        transform: none;
    }
    
    .navbar .navbar-nav .nav-link:hover::after,
    .navbar .navbar-nav .nav-link.active::after {
        width: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .timeline-panel {
        margin-left: 50px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* General Font Awesome Icon Styling */
.service-icon i,
.contact-info-icon i,
.timeline-badge i,
.footer i /* Add other specific selectors if needed */ {
  color: var(--primary-color) !important; /* Ensure this overrides other styles */
}

/* For any other generic <i> tags that are FontAwesome icons but not covered above */
i[class^="fa"],
i[class*=" fa-"] {
  color: var(--primary-color) !important; /* Broad rule with !important */
}

body.dark-mode .navbar .navbar-nav .nav-link.active {
  color: #FFFFFF !important; /* Active link text is white in dark mode, ensure it overrides other rules */
}



/* Force white icon in dark mode */
body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


