/* Global Styles */
:root {
    --primary-color: #2e7d32; /* Dark green */
    --primary-light: #4caf50;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #388e3c;
    --danger-color: #d32f2f;
    --warning-color: #ffa000;
    --info-color: #1976d2;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #fff;
    --header-bg: #fff;
    --footer-bg: #343a40;
    --input-bg: #f8f9fa;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #4caf50;
    --primary-light: #81c784;
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --header-bg: #1e1e1e;
    --footer-bg: #121212;
    --input-bg: #2d2d2d;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Theme Toggle */
.theme-toggle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn i {
    margin-right: 8px;
}

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

.btn.primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover {
    background-color: var(--card-bg);
    transform: translateY(-2px);
}

.btn.tertiary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.tertiary:hover {
    text-decoration: underline;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background-color: var(--card-bg);
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.3s;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.5s;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

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

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

.feature-card.animated {
    animation: fadeInUp 0.6s forwards;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
}

.step.animated {
    animation: fadeInRight 0.6s forwards;
}

.step:nth-child(2) {
    animation-delay: 0.2s;
}

.step:nth-child(3) {
    animation-delay: 0.4s;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Security Section */
.security {
    padding: 80px 0;
}

.security h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.security-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.method {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow-color);
    opacity: 0;
    transform: translateY(20px);
}

.method.animated {
    animation: fadeInUp 0.6s forwards;
}

.method h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Code Editor Section */
.code-editor {
    padding: 100px 0 80px;
    background-color: var(--card-bg);
}

.editor-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}

.editor-toolbar {
    padding: 15px 20px;
    background-color: var(--input-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.editor-columns {
    display: flex;
    min-height: 400px;
}

.editor-column {
    flex: 1;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.editor-column:last-child {
    border-right: none;
}

.editor-column h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

textarea {
    width: 100%;
    height: calc(100% - 30px);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: none;
    background-color: var(--input-bg);
    color: var(--text-color);
}

#encrypted-code {
    background-color: var(--input-bg);
}

.encryption-options {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--input-bg);
}

.encryption-options h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.options-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-color);
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .editor-columns {
        flex-direction: column;
    }
    
    .editor-column {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .security-methods {
        grid-template-columns: 1fr;
    }
}

/* Legal Document Styles */
.legal-document {
    padding: 100px 0 60px;
    color: var(--text-color);
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.last-updated {
    color: var(--secondary-color);
    font-style: italic;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section p, .legal-section address {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section address {
    font-style: normal;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-document {
        padding: 80px 0 40px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}