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

/* Global Link Styles */
a {
  color: #3f7fc7;                          /* Main color */
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: #2f68aa;                          /* Darker on hover */
  text-decoration: underline;
  transform: translateY(-1px);
}

a:active {
  transform: translateY(0);
}

/* Remove default link colors */
a:visited {
  color: #3f7fc7;
}

body { 
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    color: #333;
    background-image: 
        linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
        var(--page-bg, url('../images/index_bg_full.jpg'));
    background-size: 140% auto;  /* WIDER + TALLER */
    background-position: center 25%; 
    background-repeat: no-repeat;
    background-attachment: scroll; 
    min-height: 100vh;
}


body::before {
    content: '';
    position: fixed;
    top: 5%;               /* extra space for movement */
    left: 0;
    width: 100%;
    height: 350vh;           /* taller so edges don't show */
    background-image: 
        linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
        var(--page-bg, url('../images/index_bg_full.jpg'));
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;   /* ← ADD THIS */
    z-index: -1;
    transform: translateY(var(--parallax-offset, 0px));
    will-change: transform;
}

.horizontal-divider {
  width: 100%;
  height: 3px;
  background: 
    repeating-linear-gradient(90deg, #ddd 0, #ddd 4px, transparent 4px, transparent 8px),
    linear-gradient(180deg, #eee, #aaa, #eee);
  margin: 2rem 0;
  position: relative;
}


.horizontal-divider.fancy {
  width: 100%;
  height: 2px;
  background: 
    linear-gradient(90deg, transparent 0%, #ddd 20%, #aaa 50%, #ddd 80%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 4px, transparent 4px, transparent 8px),
    linear-gradient(180deg, rgba(238,238,238,0.8), rgba(170,170,170,0.9), rgba(238,238,238,0.8));
  margin: 4rem auto;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* HEADER - Fixed nav with logo */
header { 
    background: #2c3e50; 
    color: white; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.logo-link {
    display: block;
    line-height: 0;
}

.logo {
    height: 35px !important;
    width: auto !important;
    max-height: 35px !important;
    max-width: 120px !important;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

nav a {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    transition: background 0.3s;
}

.expertise-section {
  --section-height: 40vh;
  --text-color: #333; /* Change this color here */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  height: var(--section-height);
  min-height: 500px; /* Fallback for shorter content */
}

.expertise-left {
  padding: 1rem 2rem 1rem 1rem;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Center everything */
  position: relative;
}

.expertise-left h2 {
  margin: 0 0 2rem 0;
  text-align: center;
  color: var(--text-color);
  font-size: 2rem;
  position: absolute;
  top: 1rem;  /* Pin title to top */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.expertise-bullets {
  list-style-type: '◆';
  padding-left: 2rem;
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-color);
  margin: 0;
  /* Remove all flex/grid positioning - let parent center it */
}

.expertise-divider {
  width: 3px;
  background: repeating-linear-gradient(0deg, #ddd 0, #ddd 4px, transparent 4px, transparent 8px), 
              linear-gradient(90deg, #eee, #aaa, #eee);
  height: 100%;
  min-height: 300px;
}

.expertise-right {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Vertical centering */
  align-items: center;      /* Horizontal centering */
  height: 100%;
  min-height: 400px;        /* Match left column */
}

.expertise-right img {
  max-width: 100%;
  height: auto;
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
}

nav a:hover { 
    background: #34495e !important;
}

main { 
    margin-top: 80px; 
    padding: 2rem; 
    max-width: 1200px; 
    margin-left: auto; 
    margin-right: auto;
}

.hero { 
    background-image: url('../images/Codelancers_home_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem; 
    color: white;
    min-height: 50vh;
    text-align: right;
}

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

.hero p {
    font-size: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

section { 
    padding: 2rem 0; 
    height: var(--section-height, 30vh);
    display: flex;
    flex-direction: column;
    justify-content: center top;
}

footer { 
    background: #2c3e50; 
    color: white; 
    padding: 1.5rem 2rem; 
}

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

.footer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.do-badge {
    height: 40px;
    width: auto;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

form { 
    max-width: 600px; 
    margin: 0 auto; 
}

input, textarea { 
    width: 100%; 
    padding: 0.5rem; 
    margin: 0.5rem 0; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
}

button { 
    background: #3498db; 
    color: white; 
    padding: 1rem 2rem; 
    border: none; 
    cursor: pointer; 
    border-radius: 4px; 
}

button:hover { 
    background: #2980b9; 
}

.projects-section {
  /*--bg-image: url('images/projects-bg.jpg');  Change image name here */
  --text-color: #333; /* Customize text color */
  
  /* background-image: var(--bg-image); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-color);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4); /* Dark overlay for text readability */
  z-index: 1;
}

.projects-section > * {
  position: relative;
  z-index: 2;
}

.projects-section h2 {
  font-size: 3rem;
  margin: 0;
  font-weight: 700;
}

.projects-section p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.projects-images {
  /*display: flex;*/
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.projects-images img {
  max-width: 200px;
  max-height: 150px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.projects-images img:hover {
  transform: scale(1.05);
}

.experience-title {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #3a4b5c 0%, #3a4b5c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.experience-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="10" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.experience-title h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1.2s ease-out;
}

#demo_section {
	max-width: 800px;
    margin: 4rem auto;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(170,170,170,0.9), rgba(238,238,238,0.8));
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* overflow: hidden;  <-- REMOVE THIS LINE */
    position: relative;
    min-height: 400px; /* Minimum height */
    height: auto; /* Variable height based on content */
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.1;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
}

.divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2c3e50, #2c3e50, transparent);
    margin: 0 auto;
    width: 200px;
}

.feature-list {
	font-size: 1.2rem;
    line-height: 1;
    color: #555;
    text-align: left;
    margin: 0 0 2rem 0;
    padding: 0 1rem; /* Side padding prevents overflow */
    list-style: none;
    max-width: 100%; /* Constrains to container */
}

.feature-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.8rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #3a4b5c, #2c3e50);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 768px) { 
    .header-container {
        flex-direction: row;
        padding: 0.5rem 1rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    main { 
        padding: 1rem; 
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .expertise-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .expertise-divider {
        display: none; /* Hide on mobile */
    }
    .projects-section {
    padding: 3rem 1rem;
    }
    .projects-section h2 {
        font-size: 2.2rem;
    }
    .projects-images {
        flex-direction: column;
        align-items: center;
    }

    .experience-title {
        padding: 3rem 1rem;
    }
	#demo_section {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
	.feature-list {
        font-size: 1.1rem;
    }
}
