* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333 (transparent 50%);
    background: #0a0a0a url('screenshot1\ \(1\).png ') center center fixed;
    background-size: cover;
    background-blend-mode: overlay;
}

.navbar {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    color: #40d47e;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo::before {
    content: ""; /* Required for ::before to display */
    display: inline-block;
    width: 3rem;
    height: 3rem;
    margin-right: 0.5rem;
    background-image: url('ecorushlogo.png'); /* Make sure this path is correct */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #f0f6fc;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    background: rgba(64, 212, 126, 0.1);
    color: #40d47e;
    transform: translateY(-2px);
}

/* Login Button Styles */
.login-btn {
    background: linear-gradient(135deg, #40d47e 0%, #2ea95c 100%) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(64, 212, 126, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #2ea95c 0%, #238a4a 100%) !important;
    box-shadow: 0 4px 15px rgba(64, 212, 126, 0.4);
}

/* Modal Styles - UPDATED FOR SCROLLING */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95) 0%, rgba(22, 27, 34, 0.95) 100%);
    backdrop-filter: blur(20px);
    margin: 2% auto; /* Reduced top margin */
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 95vh; /* Key: Limit height to viewport */
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Enable flex layout */
    overflow: hidden; /* Prevent content overflow */
}

.close {
    color: #8b949e;
    position: sticky; /* Changed from absolute to sticky */
    top: 15px;
    right: 20px;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
    background: rgba(13, 17, 23, 0.9); /* Add background for visibility */
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: -35px; /* Offset the space it takes */
}

.close:hover,
.close:focus {
    color: #f0f6fc;
}

.login-container {
    padding: 2.5rem;
    text-align: center;
    overflow-y: auto; /* Enable scrolling */
    flex: 1; /* Take remaining space */
    scroll-behavior: smooth; /* Smooth scrolling */
    /* Custom scrollbar for better aesthetics */
    scrollbar-width: thin;
    scrollbar-color: #40d47e rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar styling for webkit browsers */
.login-container::-webkit-scrollbar {
    width: 6px;
}

.login-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.login-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #40d47e 0%, #2ea95c 100%);
    border-radius: 3px;
}

.login-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2ea95c 0%, #238a4a 100%);
}

/* Optional: Fade effect at top/bottom when scrolling */
/* .login-container::before,
.login-container::after {
    content: '';
    position: sticky;
    display: block;
    height: 20px;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
} */

.login-container::before {
    top: 0;
    background: linear-gradient(to bottom, 
        rgba(13, 17, 23, 0.95) 0%, 
        rgba(13, 17, 23, 0.8) 50%, 
        transparent 100%);
    margin-bottom: -20px;
}

.login-container::after {
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(13, 17, 23, 0.95) 0%, 
        rgba(13, 17, 23, 0.8) 50%, 
        transparent 100%);
    margin-top: -20px;
}

.login-container h2 {
    color: #f0f6fc;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-subtitle {
    color: #8b949e;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f0f6fc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #40d47e;
    box-shadow: 0 0 0 3px rgba(64, 212, 126, 0.1);
    background: rgba(33, 38, 45, 0.9);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: #8b949e;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-container input {
    width: auto;
    margin-right: 0.5rem;
}

.forgot-password {
    color: #40d47e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2ea95c;
}

.login-submit {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    color: #8b949e;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.login-divider span {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95) 0%, rgba(22, 27, 34, 0.95) 100%);
    padding: 0 1rem;
    position: relative;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-social {
    width: 100%;
    padding: 0.75rem;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(33, 38, 45, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-social.github:hover {
    border-color: #333;
    background: rgba(51, 51, 51, 0.2);
}

.btn-social.google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.1);
}

.signup-link {
    color: #8b949e;
    font-size: 0.9rem;
}

.signup-link a {
    color: #40d47e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #2ea95c;
}

.hero {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(22, 27, 34, 0.85) 50%, rgba(33, 38, 45, 0.8) 100%), (transparent 300%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(64, 212, 126, 0.1) 0%, transparent 80%),
                radial-gradient(circle at 70% 80%, rgba(255, 123, 114, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #f0f6fc;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content .tagline {
    font-size: 1.3rem;
    color: #8b949e;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #40d47e 0%, #2ea95c 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(64, 212, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(64, 212, 126, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #f0f6fc;
    border: 2px solid #30363d;
}

.btn-secondary:hover {
    border-color: #40d47e;
    background: rgba(64, 212, 126, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.engine-preview {
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.engine-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-screen {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border-radius: 8px;
    padding: 1.5rem;
    color: #40d47e;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
}

.features {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 6rem 2rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #f0f6fc;
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #40d47e;
    box-shadow: 0 10px 30px rgba(64, 212, 126, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #f0f6fc;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #8b949e;
    line-height: 1.6;
}

.download-section {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 6rem 2rem;
    text-align: center;
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
}

.download-ultimate-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 1) 0%, rgba(13, 17, 23, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 6rem 2rem;
    text-align: center;
}

.download-ultimate-container {
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: 2.5rem;
    color: #f0f6fc;
    margin-bottom: 1rem;
    font-weight: 700;
}

.download-subtitle {
    font-size: 1.2rem;
    color: #8b949e;
    margin-bottom: 3rem;
}

.download-ultimate-subtitle {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#developers {
  padding: 40px;
  background-color: #111;
  color: white;
  font-family: sans-serif;
  text-align: center;
}

#developers h2 {
  margin-bottom: 30px;
  font-size: 2em;
}

.dev-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-viewport {
  width: 320px; /* Fixed width for one card */
  overflow: hidden;
  position: relative;
}

.developer-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.developer-card {
  min-width: 320px;
  max-width: 320px;
  background: #222;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.developer-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

#prevBtn, #nextBtn {
  background-color: #444;
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 10px;
  z-index: 1;
  transition: background 0.3s ease;
}

#prevBtn:hover, #nextBtn:hover {
  background-color: #666;
}

/* Indicators (dots) */
.indicators {
  margin-top: 15px;
}

.indicators span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #555;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.indicators .active {
  background-color: #fff;
}

.footer {
    background: rgba(1, 4, 9, 0.98);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #f0f6fc;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #8b949e;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #40d47e;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b949e;
}

/* Login message styles - Enhanced for your design theme */
.login-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.login-message.success {
    background: linear-gradient(135deg, rgba(64, 212, 126, 0.15) 0%, rgba(46, 169, 92, 0.15) 100%);
    color: #40d47e;
    border: 1px solid rgba(64, 212, 126, 0.3);
}

.login-message.error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 82, 82, 0.15) 100%);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.login-message.info {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15) 0%, rgba(66, 133, 244, 0.15) 100%);
    color: #4285f4;
    border: 1px solid rgba(66, 133, 244, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for submit button - Enhanced */
.login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #666 0%, #555 100%);
    transform: none !important;
}

/* Logout button styles - Matching your theme */
.logout-btn {
    color: #ff6b6b !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff5252 !important;
    border-color: rgba(255, 107, 107, 0.4);
    transform: translateY(-1px);
}

/* Focus state for form inputs - Enhanced */
.form-group.focused label {
    color: #40d47e;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Enhanced modal animations */
.modal {
    animation: fadeInModal 0.3s ease-out;
}

.modal-content {
    animation: slideInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Loading spinner for social buttons */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for login */
@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logout-btn {
        margin-left: 5px !important;
        margin-top: 5px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .login-message {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    /* Modal responsive updates for scrolling */
    .modal-content {
        margin: 1% auto;
        width: 95%;
        max-width: 400px;
        max-height: 98vh; /* Almost full height on mobile */
    }

    .login-container {
        padding: 2rem 1.5rem;
    }

    .login-container h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem; /* Reduce spacing on mobile */
    }

    .login-subtitle {
        margin-bottom: 1.5rem; /* Reduce spacing on mobile */
    }

    .form-group {
        margin-bottom: 1.25rem; /* Tighter spacing */
    }

    .form-options {
        margin-bottom: 1.5rem;
    }

    .login-divider {
        margin: 1.5rem 0;
    }

    .social-login {
        margin-bottom: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}