/* Global Styles */
:root {
    --header-bg: skyblue;
    --footer-bg: skyblue;
    --link-bg: #00008b;
    --link-hover-bg: #0000cd;
    --link-border: red;
    --link-text: white;
    --content-bg: white;
    --content-text: #000;
    --dark-content-bg: black;
    --dark-content-text: white;
    --icon-size: 1em;
    --icon-margin: 0.25em;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    height: 100%;  /* Full height */
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: var(--content-text);
    background: var(--content-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;  /* Full viewport height */
    background-color:rgba(237, 249, 251, 0.8);
}


/* Header Styles - REDUCED HEIGHT */
.header {
    background: var(--header-bg);
    color: var(--link-text);
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);  
}

.index-header {  /* Smaller for index */
    padding: 10px;
    height: 80px;
}

.pages-header {
    padding: 8px;
    height: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}

.header-content h1 {
    margin: 0;
    font-size: 1.3rem;
}

.header-nav {
    display: flex;
    gap: 5px;
}

.header-nav a {
    padding: 10px;
    font-size: 1.2em;
    transition: background 0.3s ease;
    border-radius: 50px;
    color: red;
}

.header-nav a:hover {
    background: var(--link-hover-bg);
}

/* Logo for index - Adjusted */
.logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.divA {
    /* flex: 1; Each takes equal space within header (50% of header height) */
     /* color: #FFFFFF; White text on blue background */
    text-align: center;
    padding: 10px; /* Padding for better appearance */
    height: 35px;
    width: 35px;
     /*flex: 0 0 30%; Header takes 20% height on larger screens */
   flex-direction: row; /* divA and divB are side by side */
   /*background-color: rgb(213, 255, 192);*/
   width: 150px;
   display: inline-block;
   font-size: 35px;
   margin-top: 0px;
   padding-top: 0px;
   margin-left: 0px;
   padding-left: 0px;
}

.div-a-label-a {
    background-color: red;
    color: blue;
    text-decoration-line: underline;
   margin-top: 0px;
   padding-top: 0px;
}

.div-a-label-b {
    background-color: red;
    color: white;
   margin-top: 0px;
   padding-top: 0px;
}

.div-a-label-c {
    background-color: blue;
    color: #FF0000; /*red;*/
   margin-top: 0px;
   padding-top: 0px;
}

.div-a-label-d {
    background-color: red;
    color: white;
   margin-top: 0px;
   padding-top: 0px;
}

.div-a-label-e {
    background-color: blue;
    color: #FF0000;
   margin-top: 0px;
   padding-top: 0px;
}

.div-a-label-f {
    background-color: red;  /*blue*/
    color: white;
    padding-top: 0px;
    margin-top: 0px;
    margin: 0px;
}


/* Footer Styles */
.footer {
    background: var(--footer-bg);
    color: var(--link-text);
    padding: 8px;
    text-align: center;
    z-index: 1000;
    flex-shrink: 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.index-footer {
    height: 40px;
}

.pages-footer {
    height: 50px;
}

.index-footer p {
    margin: 0;
    line-height: 40px;
}

.pages-footer .footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin: 0;
    height: 100%;
}

.footer-nav a {
    font-size: 1em;
    padding: 5px;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.footer-nav a:hover {
    background: var(--link-hover-bg);
}

.footer-nav span {
    font-weight: bold;
    white-space: nowrap;
}

/* Content Styles - FIXED OVERFLOW */
.content {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 90px;  /* Space for index header */
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

/* Index Layout - Side by Side (Desktop) / Stacked (Mobile) */
.index-layout {
    display: flex;
    height: calc(100vh - 140px);  /* Full viewport minus header + footer */
    overflow: hidden;
    margin-top: 0;
}

.logo-section, .language-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    min-height: 400px;
}

.logo-large {
    height: 250px;  /* Bigger logo */
    width: auto;
    margin-bottom: 20px;
    border-radius: 10%;
}

.welcome-text {
    text-align: center;
    font-size: 1.2rem;
    margin: 0 20px;
    padding: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
}

/* Index page specific - Ensure language menu doesn't overflow */
.index-page .language-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 20px 0;
    margin: 20px 0;
    overflow: visible !important;
    max-width: 100%;
}

.index-page .language-menu li {
    margin: 0;
    flex: 1 1 200px;
    max-width: 250px;
}

.index-page .language-menu li a {
    padding: 12px 20px;
    text-align: center;
    font-size: 1rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pages content - Standard padding */
.pages-content {
    padding-top: 70px;  /* Space for pages header */
    padding-bottom: 70px;
}

/* Welcoming Message (Dark mode fix) */
.welcoming-message {
    text-align: center;
    padding: 25px;
    background: #f0f8ff;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-btn i {
    font-size: 1.1rem;
}

/* YouTube Icon Red */
.youtube-icon {
    color: #FF0000 !important;  /* YouTube red */
}

/* Company Section */
.company-section {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #bbdefb;
}

.company-section h2 {
    color: #1976d2;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.company-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.company-section p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #555;
}

/*---------------------------------------------------------*/


/* Company Social Links */
.company-social-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.company-social-section h4 {
    text-align: center;
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.company-social {
    justify-content: center;
    gap: 15px;
}

.company-social-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a67d8;
    color: white;
    padding: 12px 18px;
    font-size: 0.95rem;
    min-width: 120px;
    text-align: center;
}

.company-social-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.company-social-btn i {
    margin-right: 6px;
    font-size: 1.1rem;
}

/* YouTube Icon Red (for company links too) */
.company-social-btn .youtube-icon {
    color: #FF0000 !important;
}

/* Uniform Link Styles */
a {
    color: var(--link-text);
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s ease;
    white-space: nowrap;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

a:hover {
    background: var(--link-hover-bg);
}

/* Icon Styles */
i {
    font-size: var(--icon-size);
    margin-right: var(--icon-margin);
    vertical-align: middle;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

button {
    background: var(--link-bg);
    color: var(--link-text);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;;
    border: 1px solid var(--link-border);
    width: fit-content;
}

button:hover:not(:disabled) {
    background: var(--link-hover-bg);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button i {
    margin-right: 0.5em;
}

/* Headings */
h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #ffe6e6 100%);
    color: #FF0000;
}

h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
}

h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

/* Scrollable Sections */
.content > div {
    overflow: auto;
    max-height: 400px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Increased spacing between sections */
section, .projects-section, .amazon-section, .contact-details, .welcoming-message, .button-stack {
    margin-bottom: 35px;
}

.project-item {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
}

.project-item h3 {
    margin-top: 0;
}

/* Stacked buttons */
.button-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 30px 0;
}

.stacked-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 280px;
    text-align: center;
    border: 2px solid var(--link-border);
    background: var(--link-bg);
    color: var(--link-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: red;
}

.stacked-btn:hover {
    background: var(--link-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button-space {
    height: 20px;
}

/* Contact details */
.contact-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.contact-details p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.contact-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: var(--link-bg);
    color: var(--link-text);
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid var(--link-border);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--link-hover-bg);
}

/* Amazon section */
.amazon-section {
    margin: 30px 0;
    padding: 20px;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #ffe6e6 100%);
}

.amazon-section h3 {
    color: #d63031;
    margin-bottom: 15px;
}

/* End space for mobile */
.page-end-space {
    height: 30px;
}

/* Checkbox for terms */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
    margin: 15px 0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
    transform: scale(1.2);
}

.checkbox-label a {
    color: var(--link-text);
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    padding: 3px 6px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85em;
}

.checkbox-label a:hover {
    background: var(--link-hover-bg);
}

/* Masked email */
.masked-email {
    font-family: monospace;
    color: #666;
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

.error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
    margin: 15px 0;
}

.success {
    color: #27ae60;
    background: #f0fff4;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #27ae60;
    margin: 15px 0;
}

/* Donation Page Enhancements */
.cancel-warning {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.cancel-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.cancel-btn {
    background: #e74c3c !important;
    border-color: #c0392b !important;
    color: white !important;
}

.cancel-btn:hover {
    background: #c0392b !important;
}

.back-home, .back-options {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--link-bg);
    color: var(--link-text);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--link-border);
    transition: all 0.3s ease;
}

.back-home:hover, .back-options:hover {
    background: var(--link-hover-bg);
}

/* Form validation states */
input:invalid, textarea:invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 3px rgba(231, 76, 60, 0.3);
}

input:valid, textarea:valid {
    border-color: #27ae60;
    box-shadow: 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Donation Options Stacked Buttons */
.donation-options .button-stack {
    max-width: 400px;
    margin: 30px auto;
}

.donation-options .stacked-btn {
    min-width: 300px;  /* Consistent width */
    padding: 15px 25px;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.donation-options .button-space {
    height: 15px;  /* Proper spacing */
}



/*--------------------------------------------------------------------------------------------------------------*/

/* Chat-Style Messages */
.company-messages {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.message-item {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #ffffff;  /*-- White background for messages*/
}

.message-subject {
    background: #ffebee;  /* Light red */
    /*color: #ffffff; White font */
    padding: 10px 15px;
    margin: -15px -15px 15px -15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.message-body {
    background: #e3f2fd;  /* Light blue */
    /*color: #ffffff; White font */
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.message-footer {
    text-align: right;
    font-style: italic;
    color: black; /*#6c757d;*/
    margin-top: 10px;
    font-size: 0.9rem;
}

.message-date {
    font-size: 0.8rem;
    color: #868e96;
    text-align: right;
    margin-top: 5px;
}

.message-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.message-link:hover {
    background: #0056b3;
}



/* No Messages Styling */
.no-messages {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}


/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    padding: 8px 12px;
}

/* YouTube Icon Red */
.youtube-icon {
    color: #FF0000 !important;  /* YouTube red */
}

/* Uniform Language Buttons (Index Page) */
.language-menu li a {
    min-width: 180px;  /* Uniform width */
    max-width: 250px;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Add Details Styling */
.add-details {
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #d1ecf1;  /* Light cyan for distinction */
    border-radius: 4px;
    border: 1px solid #bee5eb;
    color: #0c5460;
}


/* Share Button */
.message-link-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
    border-radius: 50px;
}

.share-btn:hover {
    background: #2980b9;
}

.share-btn i {
    font-size: 1rem;
}

.language-menu {
    margin-top: 250px;
}


.error {
    color: red;
    margin-bottom: 15px;
}


.audio-control {
    width: 80px;
    border-radius: 50px;
}


.page-title {
    background-color: red;
    border-radius: 30%;
    color: white;
    padding: 10px;
}

.error {
    color: red;
}


/*============================================================================================*/
/*=========================================*/




/*===================================*/

@media (prefers-color-scheme: dark) {
    body {
        background: var(--dark-content-bg);
        color: var(--dark-content-text);
    }
    
    .content {
        background: var(--dark-content-bg);
    }
    
    .welcoming-message {
        background: #333;
        color: var(--dark-content-text);
        border: 1px solid #555;
    }
    
    .project-item, .amazon-section {
        background: #444;
        color: var(--dark-content-text);
        border-color: #555;
    }
    
    .header, .footer {
        background: #1e3a8a;
    }
    
    .welcome-text {
        background: rgba(0,0,0,0.8);
        color: var(--dark-content-text);
    }

     .company-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #5d6d7e;
        color: var(--dark-content-text);
    }
    
    .company-section h2 {
        color: #3498db;
    }
    
    .company-section p:last-child {
        color: #bdc3c7;
    }
    
    .social-btn {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .social-btn:hover {
        background: #34495e;
        color: #ecf0f1;
    }

    
    /* Fix all sections in dark mode */
    .projects-section, .amazon-section, .contact-details, .project-item {
        background: #444 !important;
        color: var(--dark-content-text) !important;
        border-color: #555 !important;
    }
    
    .project-item {
        box-shadow: 0 2px 10px rgba(255,255,255,0.1);
    }


    .company-messages {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .message-item {
        box-shadow: 0 2px 8px rgba(255,255,255,0.1);
        background: #2d3748;
    }
    
    .message-subject {
        background: #442222;
        color: #ffcccc;
    }
    
    .message-body {
        background: #1a3a5a;
        color: #a8d5ff;
    }
    
    .message-footer {
        color: #a0aec0;
    }
    
    .message-date {
        color: #90a4ae;
    }
    
    .message-link {
        background: #2980b9;
    }
    
    .message-link:hover {
        background: #1c5c87;
    }

    .add-details {
        background: #1c4e63;
        color: #bee5eb;
        border-color: #0c5460;
    }

    .share-btn {
        background: #2980b9;
        color: white;
    }
    
    .share-btn:hover {
        background: #1f6391;
    }
}



/* Responsive Media Queries */

/* Mobile (portrait, <600px) - EXPANDED MAIN AREA */
@media (max-width: 599px) {
    /* Mobile (portrait, <600px) - FIXED LANGUAGE VISIBILITY */
@media (max-width: 599px) {
    html {
        font-size: 14px;
    }

    .page-title {
        font-size: 1.2em;
    }
    
    .spacer {
        height: 100px;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .index-header {
        height: 70px;
        padding: 8px;
    }
    
    .pages-header {
        height: 55px;
    }
    
    .content {
        padding: 10px;
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: 100vh;
    }
    
    /* Index Layout - INCREASED HEIGHT FOR LANGUAGE VISIBILITY */
    .index-layout {
        flex-direction: column;
        height: calc(100vh - 110px);  /* More space for languages */
        min-height: calc(100vh - 110px);
    }
    
    .logo-section {
        height: 35vh;  /* Reduced logo section to give more space to languages */
        min-height: 200px;
        max-height: 35vh;
    }
    
    .language-section {
        flex: 1;  /* Take remaining space */
        min-height: 65vh;  /* Increased from 45vh */
        height: auto;  /* Allow natural height */
        overflow-y: auto;  /* Scroll if needed */
        padding: 10px;  /* Reduced padding */
    }
    
    .logo-large {
        height: 220px;  /* Smaller logo to save space */
        margin-bottom: 10px;
    }
    
    .welcome-text {
        font-size: 0.9rem;  /* Smaller text */
        margin: 5px 10px;
        padding: 10px;
    }
    


    /* Mobile (portrait, <600px) - CENTERED LANGUAGE BUTTONS */
    /* ... existing rules ... */
    
    /* Language Menu - CENTER ALIGNMENT */
    .language-section {
        justify-content: center;  /* Center content vertically */
        align-items: center;  /* Center content horizontally */
    }
    
    /*================================================================================*/
    .language-menu {
        flex-direction: column !important;
        gap: 6px;
        width: 100%;
        max-width: 95vw;
        padding: 5px;
        margin: 0;
        overflow: visible !important;
        position: relative;
        z-index: 10;
        /* CENTER ALIGNMENT */
        align-items: center;  /* Center buttons horizontally */
        justify-content: flex-start;  /* Start from top, but centered horizontally */
        margin-top: 150px;
    }
    
    .language-menu li {
        margin: 0 !important;
        width: 200px; /*100%;*/
        flex: none !important;
        max-width: none !important;
        /* CENTER ALIGNMENT */
        align-self: center;  /* Center each list item */
        display: flex;
        justify-content: center;
    }
    
    .language-menu li a {
        min-width: auto !important;
        width: 100% !important;
        max-width: 300px;  /* Limit maximum width */
        padding: 14px 12px;
        font-size: 0.95rem;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        border: 1px solid var(--link-border);
        margin-bottom: 2px;
        /* CENTER ALIGNMENT */
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 80px;
        margin-left: 20%;
        color: white; /*red;*/
    }
    
    .language-menu li:last-child a {
        margin-bottom: 0;
    }
    
    .language-menu li a i {
        margin-right: 8px;
        flex-shrink: 0;  /* Prevent icon from shrinking */
    }
    
    /* ... rest of existing rules ... */


    
    /* Footer - REDUCED HEIGHT */
    .footer {
        height: 35px;
        padding: 5px 8px;
    }
    
    .index-footer p {
        line-height: 35px;
        font-size: 0.85rem;
    }
    
    .pages-footer {
        height: 40px;
    }
    
    .footer-nav {
        gap: 12px;
        font-size: 0.8rem;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    input, select, button {
        font-size: 0.9rem;
    }
    
    a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .stacked-btn {
        min-width: 220px;
        padding: 12px 20px;
        font-size: 1rem;
        width: 280px;
        border-radius: 50px;
    }
    
    .projects-section {
        overflow-x: auto;
    }
    
    .project-item {
        padding: 15px;
        margin-bottom: 20px;
    }
}

.social-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .social-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

.company-social {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .company-social-btn {
        width: 100%;
        max-width: 250px;
        padding: 14px 20px;
    }
    
    .company-social-section h4 {
        font-size: 1rem;
    }

/* Mobile Uniform Buttons */
    .language-menu li a {
        min-width: 200px;
        max-width: 90vw;
    }

}


/* Tablet (600px - 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .index-header {
        height: 85px;
    }
    
    .pages-header {
        height: 65px;
        padding: 10px;
    }
    
    .content {
        padding: 15px;
        padding-top: 95px;
        padding-bottom: 70px;
    }
    
    .index-layout {
        height: calc(100vh - 145px);
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .language-menu {
        gap: 15px;
    }
    
    .stacked-btn {
        min-width: 260px;
        width: 380px;
        border-radius: 50px;
        background-color: red;
    }

    .header-nav {
        margin-top: 20px;
    }
}

/* Desktop (>1024px) */
@media (min-width: 1025px) {

    .header-nav {
        margin-top: 20px;
    }

    html {
        font-size: 18px;
    }
    
    .index-header {
        height: 90px;
        padding: 12px;
    }
    
    .pages-header {
        height: 70px;
        padding: 10px;
    }
    
    .content {
        padding: 30px;
        padding-top: 100px;
        padding-bottom: 80px;
        max-width: 1200px;
        margin: 0 auto;
        min-height: 100vh;
    }
    
    .index-layout {
        height: calc(100vh - 150px);
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    a {
        padding: 10px 18px;
        font-size: 1.1rem;
    }
    
    input, select, button {
        font-size: 1.1rem;
        padding: 14px;
    }
    
    .language-menu {
        gap: 20px;
    }
    
    .language-menu li {
        flex: 1 1 220px;
    }
    
    .stacked-btn {
        min-width: 320px;
        padding: 18px 35px;
        font-size: 1.1rem;
        width: 380px;
        border-radius: 50px;
        background-color: red;
    }
    
    .logo-large {
        height: 160px;
    }
}

/* Print Styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    .content {
        margin: 0;
        padding: 0;
        background: white;
        color: black;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    a {
        color: black;
        background: none;
        border: none;
        text-decoration: underline;
    }
    
    i {
        display: none;
    }
    
    .language-menu {
        display: none;
    }
    
    .index-layout {
        display: block;
    }
}
