@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600&family=Roboto:wght@400;700&family=Open+Sans:wght@400;700&family=Lato:wght@400;700&family=Poppins:wght@400;700&display=swap');

:root {
  --color-text: #333;
  --color-text-light: #666;
  --color-primary: #6e8efb;
  --color-secondary: #a777e3;
  --color-code-bg: #f8f8f8;
  --color-primary-light: #7d93f5; 
  --space-unit: 1rem;
  --space-sm: calc(0.5 * var(--space-unit));
  --space-md: var(--space-unit);
  --space-lg: calc(2 * var(--space-unit));
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --line-height: 1.6;
}

body {
  margin: 0;
  padding: var(--space-md);
  min-height: 100vh;
  font-family: var(--font-sans);
}

.main-content {
  padding-top: 60px;
}

h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: #000;
  animation: fadeIn 0.4s ease-out;
}

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

.container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 0;
  padding: 100px 0 2rem 0;
  align-items: stretch;
  height: 70vh;
  min-height: 600px;
  max-height: 800px;
}

@media (min-width: 992px) {
  .container {
    flex-direction: row;
    height: 70vh;
	min-height: 600px;
    max-height: 800px;
  }

	.editor-panel, .preview-panel {
    height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
  }

	.panel-content {
	flex: 1;
	min-height: 0;
	overflow: hidden;
    height: 100%;
	max-height: 100%;
	}

	#markdown-input, #preview {
	height: 100%;
	min-height: 0;
    max-height: 70vh;
	}

	
}

.editor-panel, .preview-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  height:70vh;
}

/*
.preview-panel {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 400px;
	height: 500px;
	max-height: 70vh;
}
*/


@media (max-width: 768px) {
    .editor-panel, .preview-panel {
		height: auto;
        min-height: 300px; /* Smaller minimum height for mobile */
    }

	.container {
	height:auto;
	padding: 80px 0 2rem 0;
    min-height: 0;
    max-height: none;
	}

	  #markdown-input, #preview {
    height: 300px; /* Fixed height for mobile */
  }



}

.panel-content {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

#markdown-input, #preview {
  flex: 1;
  width: 100%;
  padding: var(--space-md);
  border: 1px solid #ddd;
  font-size: 0.9em;
  line-height: var(--line-height);
  background: white !important;
  color: #333 !important;
  overflow-y: auto;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
}

#markdown-input {
  resize: none;
  font-family: var(--font-mono);
  border: 1px solid #ddd; /* Increase border width */
  border-radius: 6px 6px 6px 6px;
}

#markdown-input:focus {
    outline: none;
    border-color: #ddd; /* Maintain the same border color when focused */
}

#preview {
  font-family: var(--font-sans);
  line-height: 1.6;
  border-radius: 0 0 6px 6px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  height:70vh;
}

#preview * {
  color: inherit !important;
}

#preview pre, #preview code {
  background-color: #f8f8f8 !important;
}

#preview p {
  margin-bottom: 1em;
}

#preview ul, #preview ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

#preview br {
  content: "";
  display: block;
  margin: 0.25em 0;
}

#preview li {
  margin-bottom: 0.25em;
  line-height: 1.4;
}

#preview ul ul, #preview ol ol, #preview ul ol, #preview ol ul {
  margin-bottom: 0.5em;
  margin-top: 0.25em;
}

/* Style for when font is changed via JavaScript */
#preview p, 
#preview li, 
#preview blockquote {
    transition: font-family 0.3s ease;
}

.controls {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

button {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* New secondary button style */
.btn-secondary {
	background: #978ced;
	color: white;
	border: 1px solid #ddd;
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: none;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
	background-color: #f8f9fa;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
		
/* third even more minimal style button*/
.btn-minimal {
	background: #b5aded;
	color: white;
	border: none;
	padding: 0.4rem 0.8rem;
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: none;
	box-shadow: none;
	text-decoration: none;
}

.btn-minimal:hover {
	background-color: rgba(67, 97, 238, 0.05);
	transform: none;
	box-shadow: none;
}	


.code-block {
background: #2d2d2d;
color: #f8f8f2;
padding: 1rem;
border-radius: 5px;
font-family: 'Fira Code', monospace;
overflow-x: auto;
margin: 1.5rem 0;
}

.caption {
text-align: center;
color: var(--color-muted);
font-style: italic;
margin-top: 0.5rem;
}

.markdown-body {
  width: 100%;
  color: var(--color-text);
  line-height: var(--line-height);
}

.markdown-body pre {
  background: var(--color-code-bg);
  padding: var(--space-md);
  border-radius: 6px;
  overflow-x: auto;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
}

@media print {
  .markdown-body { color: black !important; }
  #markdown-input, #preview { color: #000 !important; }
  
  body, .markdown-body, #preview {
    background-color: white !important;
    color: #333 !important;
  }
  
  pre, code {
    background-color: #f8f8f8 !important;
    page-break-inside: avoid;
  }
  
  body > * {
    display: none;
  }
  
  body::after {
    content: "";
    display: block;
    height: 0;
    overflow: hidden;
  }
  
  #preview, #preview * {
    display: block !important;
    visibility: visible !important;
    color: #000 !important;
    background: white !important;
	font-family: 'Inter', system-ui, sans-serif;
  }
}

@media (prefers-color-scheme: dark) {
  :root { --color-text: #e0e0e0; }
  .markdown-body { background: #121212; }
  #markdown-input, #preview {
    background: white !important;
    color: #333 !important;
  }
}

/* Navigation Bar Styles */
.navbar {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 60px;
  gap: var(--space-lg);
}

.nav-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-sans);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Footer About Content */
.info-footer {
  background: #f9f9f9;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid #eee;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.info-footer h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.about-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-footer p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.steps,
.audience-list,
.features-list {
  padding-left: 1.25rem;
}

.steps li,
.audience-list li,
.features-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.audience-list strong,
.features-list strong,
.steps strong {
  font-weight: 600;
  color: var(--color-primary-light);
}

.audience-list {
  list-style-type: none;
  padding-left: 0;
}

.audience-list li::before {
  content: "•";
  color: var(--color-secondary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.legal-links {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.legal-links a {
  color: var(--color-primary);
}

/* Blog Styles */
.blog-posts {
  margin-top: 2rem;
  padding-top: 100px;
}

.post {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #eee;
}

.post h2 {
  margin: 0 0 0.5rem 0;
  color: var(--color-primary);
}

.post h2 a {
  text-decoration: none;
}

.post h2 a:hover {
  text-decoration: underline;
}

.post-date {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 100px;
}

.post-content {
  line-height: 1.6;
  margin: 2rem 0;
}

.post-content p {
  margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--space-sm);
    gap: var(--space-md);
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    gap: var(--space-md);
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .main-content {
    padding-top: 60px;
	min-height: calc(100vh - 200px);
	padding-bottom: 2rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-footer {
	background: #f9f9f9;
	padding: 2rem 1rem;
	margin-top: 3rem;
	border-top: 1px solid #eee;
  }
}


/* PDF Export Styles */
.pdf-export-container {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 8.5in;
    min-height: 11in;
    padding: 0.5in;
    background: white;
    color: black;
    font-family: var(--font-sans);
    box-sizing: border-box;
    overflow: visible;
}

.pdf-export-container h1,
.pdf-export-container h2,
.pdf-export-container h3 {
    page-break-after: avoid;
}

.pdf-export-container pre,
.pdf-export-container table,
.pdf-export-container img {
    page-break-inside: avoid;
}

.pdf-export-container p,
.pdf-export-container ul,
.pdf-export-container ol {
    orphans: 3;
    widows: 3;
}

.pdf-content {
    width: 100%;
    height: 100%;
    font-size: 12pt;
    line-height: 1.4;
}

.pdf-content * {
    color: black !important;
    background: transparent !important;
}

.pdf-content pre, .pdf-content code {
    background: #f8f8f8 !important;
    border: 1px solid #ddd;
    font-family: var(--font-mono);
}

.pdf-content pre {
    padding: 10px;
    overflow: auto;
    page-break-inside: avoid;
}

.pdf-content h1, .pdf-content h2, .pdf-content h3 {
    page-break-after: avoid;
}

.pdf-content img {
    max-width: 100% !important;
    page-break-inside: avoid;
}

.pdf-content p, .pdf-content blockquote, .pdf-content ul, .pdf-content ol {
    orphans: 3;
    widows: 3;
}

/* Loading indicator for PDF generation */
.pdf-loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 10000;
}

/* PDF Export Specific Styles */
.pdf-export-mode {
  background: white !important;
  color: black !important;
  width: 8.5in;
  padding: 0.5in;
  box-sizing: border-box;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pdf-export-mode * {
  color: black !important;
  background: transparent !important;
  /* Remove any borders from all elements */
  border-color: #ddd !important;
}

.pdf-export-mode pre,
.pdf-export-mode code {
  background: #f8f8f8 !important;
  border: 0px solid #ddd !important;
  color: #333 !important;
  /* Remove rounded corners */
  border-radius: 0 !important;
}

.pdf-export-mode a {
  color: #0000EE !important;
  text-decoration: underline !important;
}

.pdf-export-mode h1,
.pdf-export-mode h2,
.pdf-export-mode h3,
.pdf-export-mode h4,
.pdf-export-mode h5,
.pdf-export-mode h6 {
  color: black !important;
  border-color: #ddd !important;
}

.pdf-export-mode blockquote {
  border-left: 4px solid #ddd !important;
  color: #555 !important;
}

.pdf-export-mode table {
  border-color: #ddd !important;
}

.pdf-export-mode th,
.pdf-export-mode td {
  border: 1px solid #ddd !important;
  color: black !important;
}

/* Specifically target the preview container */
.pdf-export-mode #preview {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.pdf-export-container .pdf-content {
    width: 100%;
    min-height: 10in; /* Minimum page height */
    font-size: 12pt;
    line-height: 1.4;
}

/* Save Dialog Styles */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.dialog-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
}

.dialog-content h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.dialog-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.dialog-content input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 16px;
  /*box-sizing: border-box;*/
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

#save-dialog-cancel {
  background: #f0f0f0;
  color: #333;
}

#save-dialog-confirm {
  background: var(--color-primary);
  color: white;
}

/* Ensure default fonts are set for preview elements */
#preview {
    font-family: 'Inter', system-ui, sans-serif;
}

#preview h1, 
#preview h2, 
#preview h3, 
#preview h4, 
#preview h5, 
#preview h6 {
    font-family: 'Inter', system-ui, sans-serif;
    color: #000000 !important;
    font-weight: bold;
}

#preview p,
#preview li,
#preview blockquote {
    font-family: 'Inter', system-ui, sans-serif;
}

select {
	border-radius: 8px;
	background: white;
	color: black;
	border: none;
	padding: 0.1rem 0.8rem;
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: none;
	box-shadow: none;
	text-decoration: none;
}


/* Optgroup Styling */
optgroup {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--color-primary);
    background-color: white;
    padding: 1px 0;
	font-style: normal; /* This removes the italics */
}

optgroup option {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.7rem;
    color: black;
    padding: 0px 0px;
    background-color: white;
	padding-left: 2px;
}

optgroup option:hover {
    background-color: #e8edff;
}

label {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    color: black;
    margin-bottom: 0.25rem;
    display: block;
}


/* Toolbar Styling */
.formatting-toolbar {
    border-radius: 6px 6px 0 0;
    margin-bottom: 0px;
    background-color: #f6f8fa;
}

.toolbar-level {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 15px;
}

.toolbar-level.top-level {
	border-radius: 6px 6px 0 0;
    border: 1px solid #e1e4e8;
}

.toolbar-level.second-level {
	border-radius: 0 0 0  0;
    border-bottom: 1px solid #e1e4e8;
	border-right: 1px solid #e1e4e8;
    border-left: 1px solid #e1e4e8;
	
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-group label {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.toolbar-group select {
    padding: 4px 8px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    background-color: white;
    font-size: 0.75rem;
}

.btn-minimal {
    padding: 4px 12px;
    background-color: #b9b4de;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

.btn-minimal:hover {
    background-color: #8477e0;
}

.formatting-toolbar .grid-toolbar {
    grid-template-columns: 140px 1fr auto; /* Fixed width for labels */
    align-items: center;
}

.formatting-toolbar .grid-label {
    width: 140px; /* Match the grid column width */
    text-align: right;
    padding-right: 20px; /* Add some spacing between label and control */
}

.formatting-toolbar .grid-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toolbar-level {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .toolbar-group {
        width: 100%;
        justify-content: space-between;
    }
}

/* Output panel adjustments */
/*
.panel-content.output-panel 
	border-radius: 0 0 6px 6px;

}*/

 /* Enhanced Grid Layout */
        .grid-toolbar {
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 15px 20px;
            align-items: center;
        }
        
        .grid-label {
            text-align: right;
            font-weight: 600;
            color: #2c3e50;
            white-space: nowrap;
            font-size: 0.5rem;
        }
        
        .grid-item {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }

/* Mobile Responsiveness */
        @media (max-width: 768px) {
            .grid-toolbar {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .grid-label {
                text-align: left;
                padding-bottom: 5px;
                border-bottom: 1px solid #e9ecef;
                font-size: 1rem;
            }
            
            .grid-item {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            
            select, button {
                width: 100%;
            }
            
            select {
                min-width: 0;
            }
            
            .toolbar {
                padding: 15px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 15px;
            }
            
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 1.5rem;
            }
        }


/* Custom scrollbar for preview (optional) */
#preview::-webkit-scrollbar {
  width: 8px;
}

#preview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#preview::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

#preview::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.output-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of parent */
    width: 100%; /* Take full width */
}

.pdf-export-mode,
.pdf-export-mode * {
    color: #000000 !important;
}

.pdf-export-mode h1,
.pdf-export-mode h2,
.pdf-export-mode h3,
.pdf-export-mode h4,
.pdf-export-mode h5,
.pdf-export-mode h6 {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Add this to your main CSS file */
.force-black-text * {
    color: #000000 !important;
}

.force-black-text h1, 
.force-black-text h2, 
.force-black-text h3, 
.force-black-text h4, 
.force-black-text h5, 
.force-black-text h6 {
    color: #000000 !important;
    font-weight: bold;
}
/* Info Section Styles (moved above tool) */
.info-section {
  background: #f9f9f9;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.info-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.info-section h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.about-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.info-section .steps,
.info-section .audience-list,
.info-section .features-list {
  padding-left: 1.25rem;
}

.info-section .steps li,
.info-section .audience-list li,
.info-section .features-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.info-section .audience-list strong,
.info-section .features-list strong,
.info-section .steps strong {
  font-weight: 600;
  color: var(--color-primary-light);
}

.info-section .audience-list {
  list-style-type: none;
  padding-left: 0;
}

.info-section .audience-list li::before {
  content: "•";
  color: var(--color-secondary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.info-section .cta {
  margin-top: 1rem;
  font-weight: 600;
}

/* Adjust main content padding */
.main-content {
  padding-top: 60px;
}

/* Adjust container padding */
.container {
  padding: 0 0 2rem 0;
}

/* Responsive adjustments for info section */
@media (max-width: 768px) {
  .info-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Hero Section Styles */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 4rem 1rem;
  margin-top: 60px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: left;
  color: white;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

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

.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: white;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.screenshot-container {
  position: relative;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.screenshot-container:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.tool-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(110, 142, 251, 0.1) 0%, rgba(167, 119, 227, 0.1) 100%);
  pointer-events: none;
}

/* Tool Section Styles */
.tool-section {
  padding: 3rem 1rem;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* Adjust main content padding */
.main-content {
  padding-top: 0;
}

/* Adjust container padding */
.container {
  padding: 0;
}

/* Responsive adjustments for hero section */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .screenshot-container {
    transform: none;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
}