:root {
    /* Light theme (default) */
    --primary: #000081;
    --primary-dark: #00006a;
    --secondary: #f69800;
    --dark: #151a30;
    --light: #f5f7fa;
    --gray: #4c5782;
    --gray-light: #9da5c9;
    --bg-main: white;
    --bg-alt: var(--light);
    --text-main: var(--dark);
    --text-alt: var(--gray);
    --card-bg: white;
    --card-shadow: rgba(0,0,0,0.05);
    --card-shadow-hover: rgba(0,0,0,0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Arvo', serif;
}

/* Dark theme */
[data-theme="dark"] {
    --primary: #4f4fff;
    --primary-dark: #3d3df1;
    --secondary: #f69800;
    --dark: #f5f7fa;
    --light: #1a1f35;
    --gray: #a0a7c5;
    --gray-light: #6e7498;
    --bg-main: #0f1525;
    --bg-alt: #151c30;
    --text-main: #f5f7fa;
    --text-alt: #a0a7c5;
    --card-bg: #1a1f35;
    --card-shadow: rgba(0,0,0,0.2);
    --card-shadow-hover: rgba(0,0,0,0.3);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* For fixed header */
}

body {
    background-color: var(--bg-alt);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 129, 0.2);
}

.btn-outline {
    background-color: rgba(0, 0, 129, 0.15);
    border: 2px solid var(--primary);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.section {
    padding: 5rem 0;
}

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

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 1.5px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Header styles */
header {
    background-color: var(--bg-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    min-height: 80px; /* Ensure minimum height to accommodate logo */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.logo span {
    color: var(--primary);
    margin-left: 12px;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    margin-right: 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-alt);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.theme-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .3s ease;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Light circle on the left for light mode */
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 1px;
    background-color: var(--bg-main);
    transition: .3s ease;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center the icon for both light and dark mode */
.slider:after {
    content: "☀";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: -14.5px; /* Offset to the left circle */
    color: #333;
    font-size: 14px;
    transition: .3s ease;
    z-index: 3;
    text-align: center;
    line-height: 1;
}

/* When checked - dark mode */
input:checked + .slider {
    background-color: var(--light);
}

input:focus + .slider {
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Move the circle to the right for dark mode */
input:checked + .slider:before {
    transform: translateX(29px);
    background-color: var(--bg-main);
}

/* Moon icon when in dark mode */
input:checked + .slider:after {
    content: "❨";
    color: white;
    margin-left: 14.5px; /* Offset to the right circle */
}

.slider.round {
    border-radius: 30px;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px; /* Add padding for larger tap target */
    margin-left: 10px; /* Add margin for separation from toggle */
}

/* Hero section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(to left, var(--dark) 0%, #2a3050 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(to left, #0a1525 0%, #152040 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 129, 0.2) 0%, rgba(0, 0, 129, 0) 70%);
    transform: rotate(-20deg);
}

.hero-img {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    display: block;
    z-index: 0;
}

/* Medium hero image */
.medium-hero-img {
    display: none;
    text-align: right;
    margin: 1.5rem auto;
    max-width: 300px;
    position: relative;
}

.medium-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-color: rgba(0, 0, 129, 0.05);
    padding: 10px;
}

/* Mobile hero image */
.mobile-hero-img {
    display: none;
    text-align: center;
    margin: 1.5rem auto;
    max-width: 280px;
    position: relative;
    order: 1;
}

.mobile-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-color: rgba(0, 0, 129, 0.05);
    padding: 10px;
}

.hero-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

.hero h1 {
    order: 0;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.8rem;
    line-height: 1.15;
    font-weight: 700;
}

.hero h1 span {
    color: var(--secondary);
    display: inline-block;
    font-weight: 300;
}

.medium-hero-img {
    display: none;
    order: 1;
    margin: 1.5rem 0;
    max-width: 300px;
}

.mobile-hero-img {
    display: none;
    order: 1;
    margin: 1.5rem 0;
    max-width: 280px;
}

.hero p {
    order: 2;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    order: 3;
    display: flex;
    gap: 1rem;
}

/* About section */
.about {
    background: linear-gradient(to left, var(--bg-main) 0%, var(--bg-alt) 100%);
    transition: background-color 0.3s ease;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: clamp(1.7rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img-mobile {
    display: none;
    text-align: center;
    margin: 2rem auto;
    max-width: 500px;
}

.about-img-mobile img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background-color: rgba(0, 0, 129, 0.05);
}

/* Features section */
.features {
    background: linear-gradient(to left, var(--bg-main) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.features::before {
    display: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(45, 63, 107, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
}

/* Use Cases section */
.use-cases {
    background: linear-gradient(to left, var(--bg-main) 0%, var(--bg-alt) 100%);
    transition: background-color 0.3s ease;
}

.use-case-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin: 0 0.5rem;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-dark);
}

.use-case-content {
    display: none;
}

.use-case-content.active {
    display: block;
}

.use-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.use-case-img {
    text-align: center;
}

.use-case-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.use-case-text h3 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 500;
}

.use-case-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.use-case-features {
    margin-top: 2rem;
}

.use-case-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.use-case-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 129, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary);
    font-size: 0.8rem;
}

.use-case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.use-case-stats-single {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-value-single {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label-single a {
    color: var(--secondary);
    font-size: 1.0rem;
}

/* Team section */
.team {
    background: linear-gradient(to left, var(--bg-alt) 0%, var(--bg-main) 100%);
    transition: background-color 0.3s ease;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--card-shadow-hover);
}

.team-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.team-bio {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--gray);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
}

/* Contact section */
.contact {
    background: linear-gradient(to left, var(--bg-main) 0%, var(--bg-alt) 100%);
    position: relative;
    transition: background-color 0.3s ease;
}

.contact::after {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 129, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary);
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-text p, .contact-text a {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-form {
    background-color: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: background-color 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 129, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form success styles */
.form-success {
    background-color: rgba(246, 152, 0, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
    border: 1px solid var(--secondary);
    animation: fadeIn 0.5s ease-in-out;
}

.form-success h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-alt);
    margin-bottom: 0;
}

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

/* Footer */
footer {
    background: linear-gradient(to left, var(--light) 0%, var(--bg-alt) 100%);
    color: var(--dark);
    padding: 4rem 0 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure smooth transitions for all footer elements */
footer *,
.footer-about h3,
.footer-about p,
.footer-links h4,
.footer-links a,
.footer-bottom {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark theme footer */
body[data-theme="dark"] footer {
    background: linear-gradient(to left, var(--bg-main) 0%, var(--bg-alt) 100%);
    color: var(--light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase; /* Keep Summoner uppercase in the footer */
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.footer-about p {
    color: var(--text-alt);
    margin-bottom: 1.5rem;
}

/* Footer logo styling */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    margin-bottom: 0;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-main);
    text-transform: none;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-alt);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    color: var(--text-alt);
    font-size: 0.9rem;
}

body[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Specific dark mode styles for footer elements */
body[data-theme="dark"] .footer-about h3,
body[data-theme="dark"] .footer-links h4 {
    color: var(--text-main);
}

body[data-theme="dark"] .footer-about p,
body[data-theme="dark"] .footer-links a,
body[data-theme="dark"] .footer-bottom {
    color: var(--text-alt);
}

body[data-theme="dark"] .footer-links a:hover {
    color: var(--primary);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 500px;
    }
    
    .hero-img {
        width: 40%;
        right: 1%;
    }
}

@media (max-width: 1170px) {
    .hero-img {
        display: none;
    }
    
    .hero-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        width: 100%;
        max-width: 800px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .hero h1 {
        margin-bottom: 0;
        font-size: clamp(2.8rem, 4vw, 3.5rem);
        order: 0;
    }
    
    .medium-hero-img {
        display: block;
        width: 300px;
        height: 300px;
        margin: 0;
        order: 1;
    }

    .medium-hero-img img {
        width: 300px;
        height: 300px;
        object-fit: contain;
    }

    .hero p {
        margin-bottom: 0;
        font-size: 1.25rem;
        max-width: 800px;
        order: 2;
    }

    .hero-buttons {
        display: flex;
        gap: 1.5rem;
        order: 3;
    }

    .about-img {
        display: none;
    }
    
    .about-img-mobile {
        display: block;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .about-text .btn {
        margin: 1rem auto;
        display: inline-block;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        gap: 2rem;
    }
    
    .medium-hero-img {
        width: 280px;
        height: 280px;
    }
    
    .medium-hero-img img {
        width: 280px;
        height: 280px;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 3.5vw, 3rem);
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.3rem 0;
        min-height: 65px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .logo img {
        height: 50px;
        width: 50px;
        object-fit: contain;
    }
    
    /* Footer logo responsive styles */
    .footer-logo img {
        height: 35px;
        width: 35px;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .nav-links.active {
        display: flex;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .theme-switch-wrapper {
        position: absolute;
        right: 70px;
        margin: 0;
    }
    
    .theme-switch {
        width: 50px;
        height: 24px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
    }
    
    .slider:after {
        font-size: 12px;
        margin-left: -12.5px;
    }
    
    input:checked + .slider:before {
        transform: translateX(25px);
    }
    
    input:checked + .slider:after {
        margin-left: 12.5px;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero {
        padding: 7rem 0 4rem;
    }
    
    /* Replace desktop hero image with mobile version */
    .hero-img.desktop-only {
        display: none;
    }
    
    .mobile-hero-img {
        display: block;
        margin: 1.5rem auto;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-img {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Add a subtle animation for the mobile hero image */
    @keyframes float {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
        100% {
            transform: translateY(0px);
        }
    }
    
    .mobile-hero-img img {
        animation: float 6s ease-in-out infinite;
    }
    
    .medium-hero-img {
        display: none;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .features-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        margin-bottom: 1rem;
    }
    
    .use-case-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .theme-switch-wrapper {
        right: 65px;
    }
    
    .theme-switch {
        width: 44px;
        height: 22px;
    }
    
    .slider:before {
        height: 18px;
        width: 18px;
    }
    
    .slider:after {
        font-size: 11px;
        margin-left: -10.5px;
    }
    
    input:checked + .slider:before {
        transform: translateX(21px);
    }
    
    input:checked + .slider:after {
        margin-left: 10.5px;
    }
    
    /* Navbar adjustments for smaller screens */
    .navbar {
        padding: 0.25rem 0;
        min-height: 60px;
    }
    
    .logo img {
        height: 44px;
        width: 44px;
    }
    
    /* Make the mobile hamburger menu more touch-friendly */
    .mobile-menu {
        padding: 10px;
        font-size: 1.6rem; /* Slightly larger for better visibility */
    }
    
    /* Ensure the theme toggle is easily tappable on mobile */
    .theme-switch {
        width: 44px;
        height: 22px;
        margin-right: 5px; /* Additional spacing on the right */
    }
}

/* Additional media query specifically for iPhone SE and similar narrow screens */
@media (max-width: 375px) {
    .container {
        padding: 0 1rem; /* Reduce container padding on very small screens */
    }
    
    .theme-switch-wrapper {
        right: 60px; /* Adjust position for very narrow screens */
    }
    
    .mobile-menu {
        margin-left: 5px; /* Reduce margin on very small screens */
    }
    
    .logo {
        font-size: 1.4rem; /* Further reduce text size on narrow screens */
    }
    
    .logo img {
        height: 40px; /* Slightly smaller logo on very narrow screens */
        width: 40px;
    }
    
    /* Footer logo on very small screens */
    .footer-logo img {
        height: 30px;
        width: 30px;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .mobile-hero-img {
        max-width: 220px;
        margin-top: 2rem;
    }
}

/* Print styles */
@media print {
    header, 
    .hero-buttons,
    .mobile-menu,
    .contact-form,
    footer {
        display: none;
    }
    
    .container {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    a {
        color: black;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 500px;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
.btn:focus {
    outline: 3px solid rgba(0, 0, 129, 0.5);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Display Font Styling */
.logo span,
.section-title h2,
.hero h1,
.about-text h2,
.use-case-text h3,
.contact-info h3,
footer .footer-about h3 {
    font-family: var(--font-display);
    font-weight: 700; /* Arvo looks better with bold weight for headings */
    letter-spacing: -0.5px; /* Slightly different letter spacing for Arvo */
}

/* Additional spacing for larger headings */
.section-title h2,
.hero h1 {
    line-height: 1.2;
}

/* Logo-specific styling */
.logo span {
    letter-spacing: 0.5px; /* Slight letter spacing for logo */
    text-transform: uppercase; /* Keep Summoner in all caps when used with logo */
    font-weight: 700; /* Bold for the logo specifically */
    font-family: var(--font-display); /* Ensure Arvo is used */
}

.about-text h2,
.use-case-text h3,
.contact-info h3 {
    font-weight: 700;
    margin-bottom: 1.2rem;
}

/* Footer heading with Arvo */
footer .footer-links h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-main);
    text-transform: none;
} 