/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10b981;
    --secondary-color: #059669;
    --text-color: #1f2937;
    --light-bg: #f0fdf4;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --accent-color: #34d399;
    --dark-green: #065f46;
}

/* Import 8-bit font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Pixel Border Mixin */
.pixel-border {
    border: 4px solid var(--primary-color);
    box-shadow: 
        4px 0 0 0 var(--primary-color),
        -4px 0 0 0 var(--primary-color),
        0 4px 0 0 var(--primary-color),
        0 -4px 0 0 var(--primary-color);
}

/* Header and Navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--card-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow: visible;
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    overflow: visible;
}

.logo-img {
    width: 200px;
    height: auto;
    max-width: 100%;
    max-height: 64px;
    display: block;
}

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

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

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

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

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--background-color);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, 
        rgba(var(--primary-rgb), 0.15) 0%,
        rgba(var(--primary-rgb), 0.05) 50%,
        transparent 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 2rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-color); /* fallback for unsupported browsers */
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.primary:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color-light);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-image-container dotlottie-player {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 600px;
}

.hero-image {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: -20px;
    right: -20px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: -30px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: -10px;
    right: 30%;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
.section-divider {
    height: 100px;
    background: linear-gradient(to bottom right, var(--light-bg), var(--white));
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

/* Services Section */
.services {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-green);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.service-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.service-features li i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.service-image {
    margin-top: auto;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.services-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta h3 {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.services-cta p {
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.services-cta .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-green);
    position: relative;
    text-align: justify;
    text-justify: inter-word;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-text p {
    text-align: justify;
    text-justify: inter-word;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    opacity: 0.2;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-green);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 1rem 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: #e0e7ef;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
    display: inline-block;
    margin-top: 0.2rem;
    margin-bottom: 0.7rem;
    opacity: 0.92;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-image-container {
        min-height: 350px;
    }
    
    .hero-image-container dotlottie-player {
        max-width: 500px;
        max-height: 500px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
    }
    
    .hero-image-container {
        min-height: 300px;
    }
    
    .hero-image-container dotlottie-player {
        max-width: 400px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        align-items: center;
    }

    .hero-image-container {
        min-height: 250px;
    }
    
    .hero-image-container dotlottie-player {
        max-width: 300px;
        max-height: 300px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 8px 32px rgba(16,185,129,0.08);
        z-index: 1001;
        padding: 1.5rem 2rem 2rem 2rem;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        font-size: 2rem;
        z-index: 1002;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: 1rem;
        border-radius: 50%;
        transition: background 0.2s;
    }
    .mobile-menu:active, .mobile-menu:focus {
        background: #e5f7ef;
        outline: none;
    }
    .nav-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(31,41,55,0.25);
        z-index: 1000;
    }
    .nav-backdrop.active {
        display: block;
    }

    .services-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image img {
        height: 300px;
    }

    .services-cta {
        padding: 2rem;
        margin-top: 2rem;
    }

    .services-cta h3 {
        font-size: 1.5rem;
    }

    .footer-tagline {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* Public Key Box Styles */
.contact-public-key {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 185, 129, 0.1);
    align-items: flex-start;
}

.public-key-box {
    max-height: 280px;
    overflow: auto;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.6rem;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    margin-top: 0.5rem;
    user-select: all;
    transition: box-shadow 0.2s;
    width: 100%;
}

.public-key-box:active, .public-key-box:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
    outline: none;
}

.public-key-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: #e5f7ef;
    border-radius: 8px;
}
.public-key-box::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
    border: 2px solid #e5f7ef;
}
.public-key-box::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
.public-key-box::-webkit-scrollbar-corner {
    background: #e5f7ef;
}

.public-key-box {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e5f7ef;
}

@media (max-width: 768px) {
    .contact-public-key {
        padding: 1rem;
    }
    .public-key-box {
        font-size: 0.8rem;
        padding: 0.5rem;
        max-height: 120px;
    }
}

/* Secure Contact Info Box Styles */
.contact-secure-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 185, 129, 0.1);
    align-items: flex-start;
    min-height: 220px;
    justify-content: center;
}

.contact-secure-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-secure-info p {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.secure-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.secure-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.95;
}

.secure-contact-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-secure-info {
        padding: 1rem;
        min-height: unset;
    }
    .secure-contact-list li {
        font-size: 0.95rem;
    }
}

/* Download Public Key Button */
.download-key-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.07);
}
.download-key-btn i {
    font-size: 1.1rem;
}
.download-key-btn:hover, .download-key-btn:focus {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    text-decoration: none;
}

.contact-email {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e5f7ef;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.08rem;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(37,99,235,0.06);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.email-link i {
    font-size: 1.1rem;
}
.email-link:hover, .email-link:focus {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(37,99,235,0.13);
    text-decoration: none;
}

.contact-email-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: linear-gradient(135deg, #e5f7ef 0%, #f3f4f6 100%);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    padding: 1rem 1.3rem;
    margin-top: 1.5rem;
    width: 100%;
    min-width: 0;
}
.email-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.5rem;
    box-shadow: 0 1px 6px rgba(37,99,235,0.10);
}
.email-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.email-label {
    font-size: 0.98rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.email-address {
    font-size: 1.13rem;
    color: #1f2937;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}
.email-address:hover, .email-address:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}
.email-caption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.1rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .contact-email-card {
        padding: 0.8rem 1rem;
        gap: 0.7rem;
    }
    .email-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
    .email-address {
        font-size: 0.98rem;
    }
    .email-label {
        font-size: 0.9rem;
    }
    .email-caption {
        font-size: 0.78rem;
    }
}

/* --- GENERAL MOBILE LAYOUT --- */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-container, .services, .about, .contact, .footer-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .cta-button, .submit-button, .download-key-btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        min-width: 44px;
        min-height: 44px;
    }
    .service-card, .about-content, .contact-container {
        margin-bottom: 1.5rem;
    }
    .footer-tagline {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .about-image img, .service-image img {
        max-width: 100%;
        height: auto;
    }
    .public-key-box {
        font-size: 0.8rem;
        padding: 0.5rem;
        max-height: 120px;
    }
}

/* --- PREVENT HORIZONTAL SCROLL --- */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* --- BUTTONS & LINKS: TAP TARGETS --- */
.cta-button, .submit-button, .download-key-btn, .nav-links a {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.1rem;
}

/* --- IMAGES & SVGs --- */
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
  .nav-backdrop {
    z-index: 1000 !important;
  }
  .nav-links {
    z-index: 1001 !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
  }
  .mobile-menu {
    z-index: 1002 !important;
  }
  .contact-container {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    gap: 1.2rem !important;
  }
  .contact-public-key, .contact-secure-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 1.2rem !important;
    margin: 0 !important;
  }
  .public-key-box {
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 600px) {
  .contact-container {
    padding: 0.5rem !important;
    gap: 0.7rem !important;
  }
  .contact-public-key, .contact-secure-info {
    padding: 0.7rem !important;
    border-radius: 10px !important;
  }
  .public-key-box {
    font-size: 0.8rem !important;
    padding: 0.4rem !important;
    max-height: 90px !important;
  }
} 