/* Custom styles for NotepadX website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-orange: #ff6b35;
    --accent-orange-hover: #e55a2b;
    --accent-orange-light: #ff8b65;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 0; /* Remove padding, we'll handle navbar spacing differently */
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.display-4, .display-5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    font-weight: 400;
    letter-spacing: -0.005em;
}

.btn {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: -0.005em;
}

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

/* Navbar Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: -0.005em;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-orange) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 30%, #3d3d3d 70%, #2a2a2a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 76px; /* Account for fixed navbar height */
    padding-bottom: 76px; /* Match top padding for perfect centering */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    color: white;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-orange-hover), #d14d1f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.hero-section .btn-outline-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero-section .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Hero Image - Modern Editor Mockup */
.hero-image {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editor-mockup {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    width: 100%;
    position: relative;
}

.editor-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 1;
}

.editor-mockup:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mockup-header {
    background: linear-gradient(180deg, #323233 0%, #2d2d30 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3e3e42;
    position: relative;
    z-index: 2;
}

.mockup-buttons {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.btn-close-mockup,
.btn-minimize-mockup,
.btn-maximize-mockup {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.2s ease;
}

.btn-close-mockup {
    background: linear-gradient(135deg, #ff6058 0%, #ff5349 100%);
}

.btn-minimize-mockup {
    background: linear-gradient(135deg, #ffbd30 0%, #ffac00 100%);
}

.btn-maximize-mockup {
    background: linear-gradient(135deg, #00ca56 0%, #00a046 100%);
}

.btn-close-mockup:hover,
.btn-minimize-mockup:hover,
.btn-maximize-mockup:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.mockup-title {
    color: #e1e1e1;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.mockup-content {
    padding: 24px;
    background: linear-gradient(180deg, #1e1e1e 0%, #1a1a1a 100%);
    position: relative;
    z-index: 2;
    min-height: 280px;
}

.code-preview {
    display: flex;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.line-numbers {
    color: #6e7681;
    margin-right: 20px;
    text-align: right;
    user-select: none;
    font-weight: 400;
    opacity: 0.8;
}

.code-content {
    color: #e6edf3;
    flex: 1;
}

/* Modern VS Code inspired syntax highlighting */
.keyword {
    color: #ff7b72;
    font-weight: 500;
}

.function {
    color: #d2a8ff;
    font-weight: 500;
}

.variable {
    color: #79c0ff;
}

.string {
    color: #a5d6ff;
}

.method {
    color: #d2a8ff;
}

.comment {
    color: #7d8590;
    font-style: italic;
    opacity: 0.9;
}

.type {
    color: #ffa657;
}

.namespace {
    color: #ffa657;
}

.number {
    color: #79c0ff;
}

.decorator {
    color: #ffa657;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover), var(--accent-orange-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* Download Cards - Fixed spacing and containment */
.download-card {
    background: white;
    padding: 30px 20px 30px 20px; /* Reduced side padding to give buttons more room */
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible; /* Allow shadows to show but constrain content */
    margin-bottom: 20px;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.download-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 50%, #4a4a4a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(42, 42, 42, 0.4);
}

.download-icon i {
    font-size: 48px;
    color: white;
}

.download-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.download-card p {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.download-card .btn {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
    border: none;
    border-radius: 50px;
    padding: 14px 20px; /* Reduced padding to fit better */
    font-weight: 600;
    font-size: 1rem; /* Slightly smaller font */
    letter-spacing: -0.005em;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    max-width: 100%; /* Prevent overflow */
    width: 160px; /* Fixed width instead of min-width */
    display: inline-block;
    position: relative;
    overflow: hidden;
    color: white;
    margin: 0 auto; /* Center the button */
}

.download-card .btn:hover {
    background: linear-gradient(135deg, var(--accent-orange-hover), #d14d1f);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); /* Reduced hover shadow */
    transform: translateY(-1px);
    color: white;
}

.download-card .download-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.download-card .download-button-container {
    margin-top: auto;
    padding-top: 25px;
    padding-bottom: 10px; /* Add some bottom padding for balance */
    display: flex;
    justify-content: center; /* Center the button horizontally */
    align-items: center; /* Center the button vertically in its container */
    min-height: 60px; /* Ensure consistent button area height */
}

/* Remove complex column adjustments */

/* About Section Stats */
.about-stats {
    padding: 20px;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: 50px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2);
}

/* Contact Form - Apple Design */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: -0.005em;
}

.contact-form .form-control {
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    background: #fbfbfd;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.contact-form .form-control:focus {
    border-color: var(--accent-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #86868b;
    font-weight: 400;
}

.contact-form select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 50px;
}

/* Contact Form Button Styling */
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.005em;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    min-width: 180px;
    color: white;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-orange-hover), #d14d1f);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
    color: white;
}

.contact-form .btn-primary:focus {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    color: white;
}

.contact-form .btn-primary:active {
    background: linear-gradient(135deg, var(--accent-orange-hover), #d14d1f);
    transform: translateY(0);
    color: white;
}

/* Form Status Messages */
.form-status {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.form-status.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
    border: 1px solid #f1aeb5;
}

.form-status.loading {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-status.clear {
    display: none !important;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .btn-text::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: -24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Styling */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Privacy Section Styles */
.privacy-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 1000;
    overflow-y: auto;
    padding-top: 76px; /* Account for navbar */
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.privacy-section.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.privacy-section .card {
    border-radius: 12px;
    transition: transform 0.2s ease-in-out;
}

.privacy-section .card:hover {
    transform: translateY(-2px);
}

.privacy-content {
    line-height: 1.7;
}

.privacy-content h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.privacy-content h4 {
    font-weight: 500;
    color: #495057;
}

.privacy-content .list-unstyled li {
    padding: 0.25rem 0;
}

/* Smooth page transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.page-transition.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hide main content when privacy is shown */
main {
    transition: opacity 0.3s ease-in-out;
}

main.privacy-mode {
    opacity: 0;
    pointer-events: none;
}

/* Hide main page scrollbar when privacy is active */
body.privacy-active {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 76px;
        padding-bottom: 76px;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .editor-mockup {
        transform: none;
        margin-top: 30px;
    }
    
    .feature-card,
    .download-card {
        margin-bottom: 30px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 76px;
        padding-bottom: 76px;
    }
    
    .feature-card,
    .download-card {
        padding: 20px;
    }
    
    .feature-icon,
    .download-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i,
    .download-icon i {
        font-size: 24px;
    }
    
    .download-icon i {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
