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

/* Custom Scrollbar - Salamander Colors - Floating Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: #f5fe00;
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-height: 40px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8CFF00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar - Floating Style */
* {
    scrollbar-width: thin;
    scrollbar-color: #f5fe00 transparent;
}

body {
    font-family: 'Geist';
    background-color: #F6F4F0;
    color: #000000;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #000000;
    width: calc(100% - 20px);
    max-width: 1400px;
    margin: 20px auto 0;
    position: sticky;
    top: 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.logo {
    display: inline-block;
}

.logo img {
    height: 35px;
    width: auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
}

.nav-links a:hover {
    color: #FFED00;
}

.nav-links a.active {
    color: #FFED00;
    font-weight: 500;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    order: 2;
}

.mobile-menu-toggle:hover {
    color: #FFED00;
}

/* Theme toggle button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 32px;
    line-height: 1;
    order: 1;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.toggle-text {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    line-height: 1;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
    margin-top: 20px;
}

/* Page Content Styles */
.page-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.content-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333333;
}

.values-list, .involvement-list, .contribution-steps {
    margin-left: 20px;
}

.values-list li, .involvement-list li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.contribution-steps li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
}

/* Blog Styles */
.blog-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555555;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #FFED00;
}

.blog-post h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666666;
}

.read-more {
    color: #FFED00;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    color: #000000;
}

/* Project Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #8CFF00;
}

.project-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.project-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

.project-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-type, .project-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.project-type {
    background-color: #FFED00;
    color: #000000;
}

.project-status {
    background-color: #8CFF00;
    color: #000000;
}

/* Contact Styles */
.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555555;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #FFED00;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.contact-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

.contact-link {
    color: #FFED00;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.contact-link:hover {
    color: #000000;
}

.cta-section {
    text-align: center;
    margin-top: 30px;
}

.salamander-logo {
    margin-bottom: 60px;
    width: auto;
    height: 80px;
}

.motto {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

label {
    font-size: 14px;
    width: 100px;
    text-align: right;
}

.select-wrapper {
    position: relative;
    width: 250px;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
}

select {
    width: 100%;
    padding: 12px 20px;
    background-color: #8CFF00;
    color: #000000;
    border: none;
    appearance: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Geist', sans-serif;
    padding-right: 40px;
}

.select-wrapper::after {
    content: '🔽';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFED00;
    pointer-events: none;
    font-size: 12px;
}

/* Custom arrow styling */
select::-ms-expand {
    display: none;
}

.cta-button {
    background-color: #000000;
    color: #FFED00;
    border: none;
    padding: 15px 50px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 30px;
    transition: opacity 0.3s ease;
    font-family: 'Geist', sans-serif;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-button:hover {
    opacity: 0.9;
    background-color:  #FFED00;
    color: #000000;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Hide scrollbar on mobile for better appearance but preserve functionality */
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    
    * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    /* Enable touch scrolling and prevent horizontal scroll */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        overflow-y: auto; /* Ensure vertical scrolling works */
        width: 100%;
        position: relative;
    }
    
    html {
        overflow-x: hidden;
        overflow-y: auto; /* Ensure vertical scrolling works */
    }
    
    .navbar {
        padding: 10px 15px;
        width: calc(100% - 20px);
        margin: 10px;
        top: 10px;
        left: 0;
        right: 0;
        position: fixed;
        max-width: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile theme toggle - icon only */
    .theme-toggle-btn {
        padding: 6px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 12px;
        gap: 0;
        background: rgba(255, 237, 0, 0.15);
        border: 1px solid rgba(255, 237, 0, 0.3);
        justify-content: center;
    }
    
    .theme-toggle-btn:hover {
        background: rgba(255, 237, 0, 0.25);
        border-color: rgba(255, 237, 0, 0.5);
    }
    
    .toggle-icon {
        font-size: 16px;
    }
    
    .toggle-text {
        display: none; /* Hide text on mobile */
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000000;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .main-content {
        padding: 20px;
        margin-top: 70px; /* Account for fixed navbar */
        width: 100%;
        overflow-x: hidden;
        min-height: calc(100vh - 70px); /* Ensure enough content to scroll */
    }
    
    .salamander-logo {
        height: 60px;
    }
    
    .motto {
        font-size: 28px;
        padding: 0 20px;
        word-wrap: break-word;
    }
    
    .controls {
        width: 100%;
        max-width: 280px;
        padding: 0 20px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    label {
        width: auto;
        text-align: left;
    }
    
    .select-wrapper {
        width: 100%;
        max-width: 250px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .blog-post, .project-card, .contact-card {
        padding: 20px;
    }
}
/*Dark mode*/
body.dark-mode {
  background-color: #121212;
  color: #f5f5f5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .navbar {
  background-color: #1e1e1e;
}

body.dark-mode a {
  color: #f5f5f5;
}

body.dark-mode select,
body.dark-mode button {
  background-color: #2a2a2a;
  color: #f5f5f5;
  border: 1px solid #444;
}

/* Dark mode styles for new content */
body.dark-mode .page-title,
body.dark-mode .content-section h2,
body.dark-mode .blog-post h2,
body.dark-mode .project-card h3,
body.dark-mode .contact-card h3 {
  color: #f5f5f5;
}

body.dark-mode .content-section p,
body.dark-mode .blog-post p,
body.dark-mode .project-card p,
body.dark-mode .contact-card p,
body.dark-mode .blog-intro,
body.dark-mode .contact-intro {
  color: #cccccc;
}

body.dark-mode .blog-post,
body.dark-mode .project-card,
body.dark-mode .contact-card {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .post-meta {
  color: #999999;
}

body.dark-mode .read-more,
body.dark-mode .contact-link {
  color: #FFED00;
}

body.dark-mode .read-more:hover,
body.dark-mode .contact-link:hover {
  color: #f5f5f5;
}

/* Additional dark mode styles for better coverage */
body.dark-mode .values-list li,
body.dark-mode .involvement-list li,
body.dark-mode .contribution-steps li {
  color: #cccccc;
}

body.dark-mode .blog-intro,
body.dark-mode .contact-intro {
  color: #aaaaaa;
}

body.dark-mode .project-type,
body.dark-mode .project-status {
  background-color: #FFED00;
  color: #000000;
}

body.dark-mode .mobile-menu-toggle {
  color: #f5f5f5;
}

body.dark-mode .mobile-menu-toggle:hover {
  color: #FFED00;
}

body.dark-mode .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
}

body.dark-mode .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Dark mode mobile theme toggle */
@media (max-width: 768px) {
  body.dark-mode .theme-toggle-btn {
    background: rgba(140, 255, 0, 0.15);
    border: 1px solid rgba(140, 255, 0, 0.3);
    color: #8CFF00;
  }

  body.dark-mode .theme-toggle-btn:hover {
    background: rgba(140, 255, 0, 0.25);
    border-color: rgba(140, 255, 0, 0.5);
  }

  body.dark-mode .nav-links {
    background-color: #1a1a1a;
  }
}

/* Dark mode scrollbar - Floating Style */
body.dark-mode ::-webkit-scrollbar-track {
  background: transparent;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #f5fe00;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #8CFF00;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode ::-webkit-scrollbar-corner {
  background: transparent;
}

body.dark-mode * {
  scrollbar-color: #f5fe00 transparent;
}

/* Development Page Styles */
.oops-message {
  font-size: 64px;
  font-weight: 700;
  color: #f5fe00;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.development-message {
  font-size: 18px;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

.development-actions {
  text-align: center;
  margin-bottom: 60px;
}

.home-button {
  display: inline-block;
  background-color: #000000;
  color: #f5fe00;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Geist', sans-serif;
}

.home-button:hover {
  background-color: #f5fe00;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.development-logo img {
  height: 80px;
  width: auto;
  opacity: 0.8;
}

/* Dark mode development page styles */
body.dark-mode .oops-message {
  color: #f5fe00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .development-message {
  color: #aaaaaa;
}

body.dark-mode .home-button {
  background-color: #2a2a2a;
  color: #f5fe00;
  border: 1px solid #444;
}

body.dark-mode .home-button:hover {
  background-color: #f5fe00;
  color: #000000;
  border: 1px solid #f5fe00;
}

/* Contact Page Styles */
.contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #111111;
    box-shadow: 0 0 50px 25px #D6AB00;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.left-section {
    background: #111111;
    padding: 60px 60px 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
}

.form-container {
    width: 100%;
    max-width: 480px;
}

.form-header {
  margin-bottom: 20px;
}

.form-title {
  font-family: 'Geist', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 12px;
}

.form-subtitle {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #FFF;
  line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-field label {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 4px;
}

.form-field input,
.form-field textarea {
    height: 44px;
    border: 1px solid #FFFFFF;
    background: transparent;
    padding: 12px 16px;
    color: #FFFFFF;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    outline: none;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #FFED00;
}

.form-field textarea {
    height: 120px;
    resize: vertical;
    line-height: 1.4;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-button {
    width: 180px;
    height: 48px;
    background: #FFED00;
    border: none;
    border-radius: 10px;
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover {
  background: #FFED00;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 203, 46, 0.4);
}

.right-section {
    display: flex;
    flex-direction: column;
    background: #FFED00;
}

.yellow-background {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 36px;
    background: #FFED00;
    padding: 60px 40px;
    border-radius: 0 0 0 80px;
}

.featured-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

.social-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    text-align: right;
}

.social-text {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons svg {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icons svg:hover {
    transform: scale(1.15);
}

/* Responsive Contact Page */
@media (max-width: 1200px) {
    .contact-card-wrapper {
        box-shadow: 0 0 40px 20px rgba(214, 171, 0, 0.85);
    }
}

@media (max-width: 1024px) {
    .contact-card-wrapper {
        grid-template-columns: 1fr;
    }

    .left-section {
        padding: 48px 32px 56px;
        align-items: stretch;
    }

    .right-section {
        background: transparent;
    }

    .yellow-background {
        border-radius: 0;
        align-items: center;
        text-align: center;
        padding: 40px 32px 48px;
        gap: 28px;
    }

    .featured-image {
        max-width: 320px;
    }

    .social-section {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .contact-card-wrapper {
        box-shadow: 0 0 30px 15px rgba(214, 171, 0, 0.75);
    }

    .left-section {
        padding: 36px 20px 44px;
        gap: 24px;
    }

    .form-title {
        font-size: 32px;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form {
        gap: 14px;
    }

    .submit-button {
        width: 100%;
        align-self: stretch;
    }

    .yellow-background {
        padding: 32px 20px 40px;
        gap: 24px;
    }

    .featured-image {
        max-width: 260px;
    }
}

/* Dark Mode Contact Page */
body.dark-mode .contact-card-wrapper {
  background: #1a1a1a;
  box-shadow: 0 0 50px 25px rgba(214, 171, 0, 0.4);
}

body.dark-mode .left-section {
  background: #1a1a1a;
}

body.dark-mode .social-text {
  color: #111;
}
