:root {
    /* Light mode colors */
    --bg-gradient-light-1: #f5f7fa;
    --bg-gradient-light-2: #c3cfe2;
    --text-primary-light: #333;
    --text-secondary-light: #666;
    --card-bg-light: rgba(255, 255, 255, 0.8);
    --vida-color-light: #ff80ab;
    --intangibles-color-light: #a064dc;
    --background-light: #ffffff;
    --card-bg-light: #f8f8f8;
    --card-shadow-light: rgba(0, 0, 0, 0.1);
    --vida-color: #4F46E5;
    --intangibles-color: #7C3AED;
    
    /* Dark mode colors */
    --bg-gradient-dark-1: #121212;
    --bg-gradient-dark-2: #2d2d2d;
    --text-primary-dark: #f0f0f0;
    --text-secondary-dark: #bbbbbb;
    --card-bg-dark: rgba(45, 45, 45, 0.8);
    --vida-color-dark: #ff4081;
    --intangibles-color-dark: #9c27b0;
    
    /* Default (light mode) colors */
    --bg-gradient-1: var(--bg-gradient-light-1);
    --bg-gradient-2: var(--bg-gradient-light-2);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --card-bg: var(--card-bg-light);
    --vida-color: var(--vida-color-light);
    --intangibles-color: var(--intangibles-color-light);
    
    /* Gradient border colors */
    --gradient-1: var(--vida-color);
    --gradient-2: var(--intangibles-color);
    --gradient-3: #3b82f6;
    --gradient-4: #10b981;

    /* Gradient background colors for cards */
    --gradient-purple: #7C3AED; /* Purple */
    --gradient-pink: #EC4899; /* Pink */
    --gradient-violet: #8B5CF6; /* Violet - mid transition color */
    --gradient-fuchsia: #D946EF; /* Fuchsia - another transition color */
}

/* Prevent flash of unstyled content */
html {
    background-color: #ffffff;
}

html[data-theme="dark"] {
    background-color: #1a1a1a;
}

html[data-theme="dark"] {
    --bg-gradient-1: var(--bg-gradient-dark-1);
    --bg-gradient-2: var(--bg-gradient-dark-2);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --card-bg: var(--card-bg-dark);
    --vida-color: var(--vida-color-dark);
    --intangibles-color: var(--intangibles-color-dark);
    --background: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --card-bg: #2a2a2a;
    --card-shadow: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] {
    --background: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --card-bg: #f8f8f8;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Fix for menu covering content */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 100px; /* Increased space for fixed navigation */
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--background);
}

.overlay {
    display: none; /* Remove gradient overlay to use solid backgrounds */
}

html[data-theme="dark"] .overlay {
    opacity: 0.15;
}

/* Check these specific styles for theme toggle functionality */

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    position: relative; /* Change from fixed to relative */
    z-index: 990;
}

#theme-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

#theme-button:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-label {
    margin-left: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.sun-icon, .moon-icon {
    position: relative;
    transition: opacity 0.3s ease, transform 0.5s ease;
    width: 20px;
    height: 20px;
}

html[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: scale(0);
    position: absolute;
}

html[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: scale(1);
}

html[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: scale(1);
}

html[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: scale(0);
    position: absolute;
}

/* Navigation styles - fix for menu bar */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background);
}

/* Enhanced active menu highlighting */

/* Navigation links styling */
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Active link indicator - bottom border/underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--vida-color), var(--intangibles-color));
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Active page indicator */
.nav-links a.active {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
    left: 0;
}

/* Add a subtle background to active items on mobile */
@media (max-width: 768px) {
    .nav-links a.active {
        background-color: rgba(125, 58, 237, 0.05); /* Very subtle purple background */
    }
}

/* Fix hamburger button display */
.hamburger {
    display: none; /* Default to hidden until mobile breakpoint */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    width: 36px; /* Make width equal to height for a square shape */
    height: 36px; /* Make height equal to width for a square shape */
    position: relative;
    flex-direction: column;
    justify-content: center; /* Center the lines vertically */
    align-items: center; /* Center the lines horizontally */
    margin-right: 10px; /* Adjust spacing */
}

/* Ensure hamburger lines are visible in dark mode */
.hamburger span {
    display: block;
    width: 24px; /* Slightly shorter than container for better appearance */
    height: 3px; /* Maintain thickness for better visibility */
    background-color: var(--text-primary); /* Default color */
    margin: 4px 0; /* Equal spacing between lines */
    transition: all 0.3s ease;
}

/* Explicitly set hamburger color for dark mode */
html[data-theme="dark"] .hamburger span {
    background-color: #ffffff; /* White for visibility in dark mode */
}

html[data-theme="light"] .hamburger span {
    background-color: #333333; /* Dark for visibility in light mode */
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Fix mobile navigation */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Adjusted for mobile */
    }
    
    .hamburger {
        display: flex; /* Show hamburger ONLY on mobile */
        margin-right: 15px; /* Add more space between hamburger and right edge */
        align-self: center; /* Center vertically within container */
        width: 40px; /* Make slightly larger on mobile */
        height: 40px; /* Keep square aspect ratio */
        padding: 8px; /* Add internal padding to create a touch target area */
        justify-content: space-around; /* Distribute lines evenly */
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; /* Ensure container takes full width */
        padding: 1rem; /* Consistent padding all around */
        min-height: 60px; /* Ensure minimum height for the nav container */
    }
    
    .main-nav {
        padding: 0; /* Remove padding from main nav */
        height: auto; /* Let height be determined by content */
        flex-direction: row; /* Ensure horizontal layout for container */
    }
    
    .logo {
        margin-bottom: 0; /* Remove bottom margin that causes misalignment */
    }
    
    .nav-links {
        position: fixed;
        top: 60px; /* Align with bottom of header */
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--background);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0;
        z-index: 1000;
        visibility: hidden;
        width: 100%; /* Ensure it takes full width */
        padding: 0; /* Reset padding when collapsed */
    }
    
    .nav-links.active {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        padding: 10px 0;
    }
    
    .theme-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 10px 0;
        padding: 12px 0;
        border-top: 1px solid rgba(125, 125, 125, 0.1);
        background-color: rgba(125, 125, 125, 0.05);
    }
    
    #theme-button {
        background-color: rgba(125, 125, 125, 0.15);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    html[data-theme="dark"] #theme-button {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .theme-label {
        font-size: 1rem;
        color: var(--text-primary);
        margin-left: 12px;
        font-weight: 600;
        display: inline-block;
    }
    
    .sun-icon, .moon-icon {
        width: 22px;
        height: 22px;
        color: var(--text-primary);
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .menu-overlay.active {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    html[data-theme="dark"] .menu-overlay.active {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .vida-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    .main-nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .theme-toggle {
        top: 100px;
    }
}

/* Make sure content is properly positioned */
header, .page-content, .support-container {
    padding-top: 30px;
    margin-top: 20px;
}

@media (min-width: 769px) {
    body {
        padding-top: 80px;
    }
    
    header, .page-content, .support-container {
        margin-top: 10px;
    }
    
    .hamburger {
        display: none !important; /* Ensure hamburger is hidden on desktop with higher specificity */
    }
    
    .nav-links {
        max-height: none;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: row;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .theme-toggle {
        margin-left: 1rem;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        padding-left: 1rem;
        position: relative;
    }
}

/* Fix menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Support page styles */
.support-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.support-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.support-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .support-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-section:first-child {
        grid-column: 1 / 2;
    }
    
    .support-section:last-child {
        grid-column: 1 / 3;
    }
}

.support-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.support-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Contact info styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-method h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-method p {
    color: var(--text-secondary);
}

.contact-method .hours {
    font-size: 0.9rem;
    margin-top: 0.2rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* FAQ styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    font-family: inherit;
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
}

.submit-btn {
    background: linear-gradient(to right, var(--vida-color), var(--intangibles-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Adjust header and content padding to account for fixed nav */
header, .page-content {
    padding-top: 2rem;
}

/* Styles for company pages */
.page-header {
    text-align: center;
    padding: 3rem 1rem;
}

.page-header .logo-container {
    margin: 0 auto 1.5rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding: 1rem;
}

/* Add specific styles for page types */
.vida-page .page-header h1 {
    color: var(--vida-color);
}

.intangibles-page .page-header h1 {
    color: var(--intangibles-color);
}

header {
    text-align: center;
    padding: 2rem 1rem;
}

h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 2rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    font-size: 0.9rem;
    padding: 0 1rem;
}

.button-container {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    justify-content: center;
    gap: 2rem; /* Space between cards */
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.company-card, .feature-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    z-index: 1;
    overflow: hidden; /* Contain the background animation */
}

.company-card::before, .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--gradient-purple),
        var(--gradient-violet),
        var(--gradient-fuchsia),
        var(--gradient-pink),
        var(--gradient-purple)
    );
    z-index: -1;
    background-size: 300% 300%;
    animation: gradient-bg-animation 8s ease-in-out infinite;
    opacity: 0.1; /* Subtle by default */
    transition: opacity 0.3s ease;
}

.company-card:hover::before, .feature-card:hover::before {
    opacity: 0.2;
}

html[data-theme="dark"] .company-card::before, 
html[data-theme="dark"] .feature-card::before {
    opacity: 0.15;
}

html[data-theme="dark"] .company-card:hover::before, 
html[data-theme="dark"] .feature-card:hover::before {
    opacity: 0.25;
}

@keyframes gradient-bg-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.company-card {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: none;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--card-shadow);
}

.vida-card, .intangibles-card {
    border-top: none;
}

.feature-card {
    margin: 3px;
    box-shadow: 0 3px 10px var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--card-shadow);
}

.company-card .logo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--background);
}

.company-card .logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-card h2 {
    margin: 0.5rem 0;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.company-card .description {
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.company-card .learn-more {
    margin-top: auto; /* Push to bottom */
    background: linear-gradient(to right, var(--vida-color), var(--intangibles-color));
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-card .learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.vida-card {
    border-top: none;
}

.intangibles-card {
    border-top: none;
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .company-card {
        width: 100%;
        max-width: 100%;
    }
}

.logo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: box-shadow 0.3s ease;
    width: 100px;
    height: 100px;
}

html[data-theme="dark"] .logo-container {
    background-color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo-container img {
    max-width: 80%;
    max-height: 80%;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.vida-card h2 {
    color: var(--vida-color);
}

.intangibles-card h2 {
    color: var(--intangibles-color);
}

.description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
    font-size: 1rem;
    line-height: 1.5;
}

.learn-more {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: transform 0.2s ease;
    font-size: 1rem;
    background: linear-gradient(to right, var(--vida-color), var(--intangibles-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.learn-more:hover {
    transform: translateX(5px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--card-shadow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--card-shadow);
}

.learn-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--card-shadow);
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background-color: var(--background);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}

/* Add or update these styles to fix button responsiveness */

/* Base button styles */
button, .download-btn, .learn-more {
    display: inline-block;
    background: linear-gradient(to right, var(--vida-color), var(--intangibles-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    font-size: 1rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button wrapper for proper centering and width control */
.button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 1.5rem 0;
}

/* CTA section styling */
.cta-section {
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--card-shadow);
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature grid responsiveness */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    margin: 3px;
    box-shadow: 0 3px 10px var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--card-shadow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Content container padding */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Media query for small screens */
@media (max-width: 480px) {
    .content-container {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    button, .download-btn, .learn-more {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        width: auto;
        max-width: 90%;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .page-header {
        padding: 1.5rem 0.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
}

/* Fixes for really small screens */
@media (max-width: 320px) {
    button, .download-btn, .learn-more {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .theme-label {
        font-size: 0.8rem;
    }
}

/* Fix theme toggle button on small screens */
@media (max-width: 768px) {
    #theme-button {
        padding: 0.5rem 0;
    }
    
    .theme-label {
        margin-left: 0.3rem;
    }
    
    .nav-links {
        padding: 0.5rem 0;
    }
    
    .sun-icon, .moon-icon {
        width: 18px;
        height: 18px;
    }
}

/* Fix navigation on small screens */
.main-nav {
    width: 100%;
    overflow: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
}

/* Button hover state */
button:hover, .download-btn:hover, .learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--card-shadow);
}

/* Button active state */
button:active, .download-btn:active, .learn-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--card-shadow);
}

/* Force buttons to be visible on all screens */
button, .download-btn, .learn-more {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Apps page styles */
.app-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.app-section:last-child {
    border-bottom: none;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-header .logo-container {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.app-header .logo-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.app-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    color: var(--text-primary);
}

.app-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.app-description {
    margin: 1.5rem 0 2rem 0;
}

.app-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.airport-logo {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1;
}

.apps-logo, .services-logo {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1;
    width: 100%;
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1;
    width: 100%;
    height: 100%;
}

/* Emoji consistency fixes for GitHub Pages */
.apps-logo::before {
    content: "📱";
    font-size: 2.8rem;
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.services-logo::before {
    content: "💻";
    font-size: 2.8rem;
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.airport-logo::before {
    content: "✈️";
    font-size: 2.8rem;
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide the original emoji content */
.apps-logo,
.services-logo,
.airport-logo {
    font-size: 0;
}

.service-icon {
    font-size: 0;
}

.service-icon::before {
    font-size: 2.8rem;
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Specific service icons */
#consultation .service-icon::before {
    content: "🔧";
}

#media .service-icon::before {
    content: "🎬";
}

#electronics .service-icon::before {
    content: "⚡";
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .app-info h2 {
        font-size: 1.8rem;
    }
}

/* Services page styles - matching apps page layout */
.service-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.service-section:last-child {
    border-bottom: none;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-icon-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--card-shadow);
    flex-shrink: 0;
}

.service-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    color: var(--text-primary);
}

.service-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.service-description {
    margin: 1.5rem 0 2rem 0;
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--gradient-purple),
        var(--gradient-violet),
        var(--gradient-fuchsia),
        var(--gradient-pink),
        var(--gradient-purple)
    );
    z-index: -1;
    background-size: 300% 300%;
    animation: gradient-bg-animation 8s ease-in-out infinite;
    opacity: 0.05;
    transition: opacity 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--card-shadow);
}

.service-item:hover::before {
    opacity: 0.1;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-price {
    background: linear-gradient(to right, #4F46E5, #7C3AED);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-top: auto;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2);
    align-self: center;
}

.portfolio-cta {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--card-shadow);
    margin-top: 1rem;
}

.portfolio-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.portfolio-cta p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.portfolio-btn, .contact-btn {
    display: inline-block;
    background: linear-gradient(to right, #4F46E5, #7C3AED);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.portfolio-btn:hover, .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

@media (max-width: 768px) {
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-info h2 {
        font-size: 1.8rem;
    }
    
    .service-icon-container {
        width: 80px;
        height: 80px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
}

.consultation-section {
    border-left: none;
}

.media-section {
    border-left: none;
}

.electronics-section {
    border-left: none;
}

/* Contact section styles */
.contact-section {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--card-shadow);
    margin: 3rem 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-section > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}