/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch device optimizations */
.touch-device * {
    -webkit-tap-highlight-color: transparent;
}

.touch-device button,
.touch-device .btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.dark-mode-btn {
    background: transparent;
    border: 2px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
}

.dark-mode-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.dark-mode-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.dark-mode-btn.active i {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 70px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Hero Parallax Background */
.hero-parallax {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    perspective: 1000px;
    /* Ensure elements stay within bounds */
    contain: layout style paint;
}

.parallax-layer {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    will-change: transform;
    /* Ensure elements don't move outside the container */
    transform-origin: center center;
}

.layer-1 {
    z-index: 1;
}

.layer-2 {
    z-index: 2;
}

.layer-3 {
    z-index: 3;
}

.layer-4 {
    z-index: 4;
}

/* Security Icons */
.security-icon {
    position: absolute;
    color: #3b82f6;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
    /* Keep icons within bounds */
    max-width: 50px;
    max-height: 50px;
}

.security-icon:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.security-icon:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.security-icon:nth-child(3) {
    top: 40%;
    right: 10%;
    animation-delay: 4s;
}

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

/* Code Snippets */
.code-snippet {
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #10b981;
    backdrop-filter: blur(10px);
    animation: codeGlow 4s ease-in-out infinite;
    /* Keep code snippets within bounds */
    max-width: 200px;
    max-height: 100px;
    overflow: hidden;
}

.code-snippet:nth-child(1) {
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.code-snippet:nth-child(2) {
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.code-line {
    margin: 0.2rem 0;
    opacity: 0.9;
}

@keyframes codeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.6); }
}

/* Network Nodes */
.network-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    animation: pulse 3s ease-in-out infinite;
}

.network-node:nth-child(1) {
    top: 25%;
    left: 20%;
    animation-delay: 0s;
}

.network-node:nth-child(2) {
    top: 45%;
    left: 60%;
    animation-delay: 1s;
}

.network-node:nth-child(3) {
    top: 70%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Network Connections */
.network-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: dataFlow 3s linear infinite;
}

.network-connection:nth-child(4) {
    top: 30%;
    left: 25%;
    width: 200px;
    transform: rotate(25deg);
    animation-delay: 0s;
}

.network-connection:nth-child(5) {
    top: 50%;
    left: 35%;
    width: 150px;
    transform: rotate(-15deg);
    animation-delay: 1.5s;
}

@keyframes dataFlow {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}

/* Binary Code */
.binary-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #64748b;
    opacity: 0.4;
    animation: binaryScroll 8s linear infinite;
    white-space: nowrap;
    /* Keep binary code within bounds */
    max-width: 300px;
    overflow: hidden;
}

.binary-code:nth-child(1) {
    top: 15%;
    left: 0;
    animation-delay: 0s;
}

.binary-code:nth-child(2) {
    top: 80%;
    right: 0;
    animation-delay: 4s;
}

@keyframes binaryScroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

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

.service-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Automation Service Section */
.automation-service {
    padding: 100px 0;
    background: #f8fafc;
}

.automation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.automation-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-highlight {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.service-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.pricing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.price-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.price-features {
    text-align: left;
}

.price-features p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: #2563eb;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.feature-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Automation Form */
.automation-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.automation-form h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.form-description {
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.automation-form label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.automation-form input,
.automation-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.automation-form input:focus,
.automation-form select:focus {
    outline: none;
    border-color: #2563eb;
}

.automation-form input[type="file"] {
    padding: 8px 12px;
}

.automation-form small {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: #f3f4f6;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label span {
    color: #374151;
    font-size: 0.9rem;
}

/* Payment Options */
.payment-options {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.payment-options h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.stripe-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-stripe {
    background: #635bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-stripe:hover {
    background: #5a52e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.payment-note {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Stripe Success/Cancel Pages */
.stripe-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding-top: 70px;
}

.success-content,
.cancel-content {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.success-content i {
    color: #10b981;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cancel-content i {
    color: #ef4444;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-content h2,
.cancel-content h2 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.success-content p,
.cancel-content p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: #f8fafc;
}

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

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.member-avatar i {
    font-size: 2.5rem;
    color: white;
}

.team-member h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: #64748b;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.contact-item i {
    color: #2563eb;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

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

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

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dark-mode-toggle {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-parallax {
        height: 300px;
    }

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

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

    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .team-member {
        padding: 1.5rem;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-menu a {
    color: #e2e8f0;
}

body.dark-mode .nav-menu a:hover {
    color: #3b82f6;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .hero-text h1 {
    color: #f8fafc;
}

body.dark-mode .hero-subtitle {
    color: #3b82f6;
}

body.dark-mode .hero-description {
    color: #94a3b8;
}

body.dark-mode .services {
    background: #1e293b;
}

body.dark-mode .section-title {
    color: #f8fafc;
}

body.dark-mode .service-card {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .service-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

body.dark-mode .service-card h3 {
    color: #f8fafc;
}

body.dark-mode .service-card p {
    color: #cbd5e1;
}

body.dark-mode .team {
    background: #0f172a;
}

body.dark-mode .team-member {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .team-member:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

body.dark-mode .team-member h3 {
    color: #f8fafc;
}

body.dark-mode .team-member .member-bio {
    color: #cbd5e1;
}

/* Dark mode for automation service */
body.dark-mode .automation-service {
    background: #1e293b;
}

body.dark-mode .feature-item {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .feature-item h4 {
    color: #f8fafc;
}

body.dark-mode .feature-item p {
    color: #cbd5e1;
}

body.dark-mode .automation-form-container {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .automation-form h3 {
    color: #f8fafc;
}

body.dark-mode .form-description {
    color: #cbd5e1;
}

body.dark-mode .automation-form label {
    color: #e2e8f0;
}

body.dark-mode .automation-form input,
body.dark-mode .automation-form select {
    background: #475569;
    border-color: #64748b;
    color: #f8fafc;
}

body.dark-mode .automation-form input:focus,
body.dark-mode .automation-form select:focus {
    border-color: #3b82f6;
}

body.dark-mode .automation-form small {
    color: #94a3b8;
}

body.dark-mode .checkbox-label:hover {
    background-color: #475569;
}

body.dark-mode .checkbox-label span {
    color: #e2e8f0;
}

/* Dark mode for payment options */
body.dark-mode .payment-options {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .payment-options h4 {
    color: #f8fafc;
}

body.dark-mode .stripe-page {
    background: #1e293b;
}

body.dark-mode .success-content,
body.dark-mode .cancel-content {
    background: #334155;
}

body.dark-mode .success-content h2,
body.dark-mode .cancel-content h2 {
    color: #f8fafc;
}

body.dark-mode .success-content p,
body.dark-mode .cancel-content p {
    color: #cbd5e1;
}

body.dark-mode .contact {
    background: #1e293b;
}

body.dark-mode .contact-info h3 {
    color: #f8fafc;
}

body.dark-mode .contact-info p {
    color: #cbd5e1;
}

body.dark-mode .contact-form {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form select,
body.dark-mode .contact-form textarea {
    background: #475569;
    border-color: #64748b;
    color: #f8fafc;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form select:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: #3b82f6;
}

/* Form success message styling */
.form-success {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for submit button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.dark-mode .footer {
    background: #0f172a;
}

body.dark-mode .footer-section ul li a {
    color: #94a3b8;
}

body.dark-mode .footer-section ul li a:hover {
    color: #3b82f6;
}

body.dark-mode .social-links a {
    background: #334155;
}

body.dark-mode .social-links a:hover {
    background: #3b82f6;
}

body.dark-mode .footer-bottom {
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Dark mode button styles */
body.dark-mode .dark-mode-btn {
    border-color: #3b82f6;
    color: #3b82f6;
}

body.dark-mode .dark-mode-btn:hover {
    background: #3b82f6;
    color: #0f172a;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments for parallax */
@media (max-width: 768px) {
    .hero-parallax {
        height: 300px;
    }
    
    .security-icon {
        font-size: 1.5rem;
    }
    
    .code-snippet {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    .binary-code {
        font-size: 0.7rem;
    }
    
    .network-node {
        width: 8px;
        height: 8px;
    }
}

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.success-modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 1rem;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-modal-content h2 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.success-modal-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
}

.success-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.success-actions .btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.success-actions .btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Dark mode for success modal */
body.dark-mode .success-modal-content {
    background: #1f2937;
    color: white;
}

body.dark-mode .success-modal-content h2 {
    color: white;
}

body.dark-mode .success-modal-content p {
    color: #d1d5db;
}

body.dark-mode .success-actions .btn-secondary {
    color: #d1d5db;
    border-color: #374151;
}

body.dark-mode .success-actions .btn-secondary:hover {
    background: #374151;
    border-color: #4b5563;
}

/* Automation CTA Section */
.automation-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 20px;
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: #2563eb;
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Navigation active state */
.nav-menu a.active {
    color: #2563eb;
    font-weight: 600;
}

/* Responsive design for automation CTA */
@media (max-width: 768px) {
    .automation-cta {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 60px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        padding: 1.5rem;
        text-align: center;
    }
    
    .automation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .stripe-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-stripe {
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    
    .nav-container {
        padding: 0 5px;
        height: 55px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .hero {
        min-height: 70vh;
        padding-top: 55px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .service-card,
    .team-member {
        padding: 1rem;
    }
    
    .service-card h3,
    .team-member h3 {
        font-size: 1.2rem;
    }
    
    .service-card p,
    .team-member p {
        font-size: 0.9rem;
    }
    
    .automation-cta {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .checkbox-label {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .price-card {
        padding: 1rem;
    }
    
    .price-tag {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .price-features p {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .team-member {
        padding: 0.8rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* Authentication Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: authModalSlideIn 0.3s ease-out;
}

@keyframes authModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.auth-modal-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.auth-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-close:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: #f8fafc;
}

.auth-form {
    padding: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

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

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-submit {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    position: relative;
}

.auth-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-message {
    margin: 0;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* User Menu */
.user-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    min-width: 250px;
    animation: userMenuSlideIn 0.3s ease-out;
}

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

.user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.75rem;
}

.user-details {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.user-email {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
}

.user-actions {
    padding: 0.5rem;
}

.user-action {
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-action:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

/* Login/Logout Button in Navigation */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn, .logout-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.login-btn {
    background: #2563eb;
    color: white;
}

.login-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.logout-btn {
    background: #ef4444;
    color: white;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.user-avatar-btn {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.user-avatar-btn:hover {
    transform: scale(1.1);
}

/* Mobile Responsive for Auth */
@media (max-width: 768px) {
    .auth-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .user-menu {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .nav-auth {
        gap: 0.5rem;
    }
    
    .login-btn, .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
