/* Global Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #008B8B 0%, #764ba2 100%);
}

/* Navigation Bar */
.nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.logo span {
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
}


.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}


/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.main-content {
    padding: 40px;
}

/* Input & Parameter Sections */
.input-section, .parameters-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}


.input-method h3, .parameters-section h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.radio-group, .parameter-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #3498db;
    background-color: #ecf0f1;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

.file-input-section, .manual-input-section {
    display: none;
    margin-top: 20px;
}

.file-input {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.file-input:hover {
    background: #e8f4f8;
}

.file-input input[type="file"]{
    display:none;
}

.file-name-display {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.manual-input textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.manual-input textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.1);
}

.parameter {
    flex: 1;
}

.parameter label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.parameter input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.param-item {
	margin-bottom: 8px;
	color: #34495e;
}

.button-section {
    text-align: center;
    margin-bottom: 30px;
}

.analyze-btn, .cta-button {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    display: inline-block;
    text-decoration: none;
}

.analyze-btn:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #3498db, #7FFF00);
}

.analyze-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Utility Sections */
.hidden-form, .loading { display: none; }

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.error-message { background: #e74c3c; color: white; }
.success-message { background: #27ae60; color: white; }

/* Banner & Cards */
.banner {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.banner-content {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.banner h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.banner-subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 3px solid #7B68EE;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-card .icon {
    font-size: 2em;
}

.content-card p, .content-card ul {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-card li {
    margin-bottom: 8px;
}

.dna-example {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.dna-sequence {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.sequence-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.research-section {
    background: white;
    padding: 60px 20px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.research-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.features {
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-top: 40px;
}

.feature-item {
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #3498db;
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.feature-item p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: darkslateblue;
    padding: 50px 0px 30px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4,1fr); 
    gap: 20px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
	color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-list li:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }


    .main-content {
        padding: 20px;
    }

    .content-card {
        padding: 30px 20px;
    }

    .parameter-group, .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .analyze-btn {
        min-width: auto;
        width: 100%;
    }


.sequence-result {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	border-left: 5px solid #27ae60;
}

.sequence-header {
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 15px;
	font-size: 1.3em;
}
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
th {
	background: #3498db;
	color: white;
	padding: 12px;
	text-align: left;
	font-weight: bold;
}
td {
	padding: 12px;
	border-bottom: 1px solid #ecf0f1;
}
tr:hover {
	background: #f8f9fa;
}
tt {
	font-family: 'Courier New', monospace;
	background: #ffeaa7;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: bold;
	color: #e74c3c;
}
.total-summary {
	background: #3498db;
	color: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	font-size: 1.3em;
	font-weight: bold;
	margin-top: 30px;
}
.error {
	background: #e74c3c;
	color: white;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}
.error h3 {
	margin-bottom: 10px;
}
.back-link {
	display: inline-block;
	background: #95a5a6;
	color: white;
	padding: 12px 24px;
	text-decoration: none;
	border-radius: 6px;
	margin-top: 20px;
	transition: background 0.3s ease;
	font-weight: bold;
}
.back-link:hover {
	background: #7f8c8d;
}
.no-palindromes {
	color: #666;
	font-style: italic;
	text-align: center;
	padding: 20px;
	background: #ecf0f1;
	border-radius: 6px;
}
