@import 'variables.css';
@import 'style.css';
@import 'blog-post.css';
@import 'mobile.css';


/* Project Container */
body {
    background: var(--primary-color);
}

.project-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;  /* Reduced bottom padding from 4rem to 2rem */
    min-height: calc(100vh - 60px);
    text-align: left;
    background: transparent;  /* Changed from bg-primary to transparent */
}

.project-container h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: left;
}

.project-container > p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 800px;
    text-align: left;
}

/* Project Content */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;  /* Reduced from 4rem to match index.html */
}

/* Section Styling */
.section {
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;  /* Reduced from 3rem to match index.html */
}

.section h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.section p {
    line-height: 1.8;
    color: var(--text-color);
}

.section li {
    color: var(--text-color);
}

.section-overview {
    padding: 2rem;
    background: var(--secondary-color);  /* Changed from bg-primary to match other sections */
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.section-overview h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-overview p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Challenges Section */
.section.challenges ul {
    list-style: none;
    padding-left: 0;
}

.section.challenges li {
    margin: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.4;
}

.section.challenges li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Technical Breakdown */
.technical-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.technical-breakdown h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.technical-breakdown p {
    color: var(--text-color);
}

/* Results & Impact */
.section.results ul {
    list-style: none;
    padding-left: 0;
}

.section.results li {
    margin: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
}

.section.results li::before {
    content: "✓";
    color: var (--accent-color);
    position: absolute;
    left: 0;
}

/* Lessons & Next Steps */
.lessons-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;  /* Reduced from 3rem to match index.html */
    margin: 1.5rem 0;  /* Adjusted for better rhythm */
}

.learned, .next-steps {
    padding: 2rem;
    background: var(--secondary-color);  /* Changed from bg-primary to match other sections */
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* Lessons Section */
.section.lessons ul {
    list-style: none;
    padding-left: 0;
}

.section.lessons > ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Makes direct children side by side */
    gap: 2rem;  /* Adds space between the columns */
}

.section.lessons > ul > li {
    margin: 1.5rem 0;
}

.section.lessons ul ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.section.lessons ul ul li {
    margin: 0.5rem 0;
    position: relative;
}

.section.lessons ul ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: left;
}

.button {
    display: inline-flex;
    align-items: left;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    justify-content: flex-start;
    text-align: left;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--accent-light);
}

/* Side by Side Layout */
.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Make both sections equal height */
.section-overview,
.section.challenges {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Adjust content within sections */
.section-overview p,
.section.challenges ul {
    flex: 1;  /* This will make the content take remaining space */
    margin: 0;  /* Reset margins to prevent spacing issues */
}

/* Maintain heading styles */
.section-overview h2,
.section.challenges h2 {
    margin-bottom: 1.5rem;
}

/* Lists Styling */
.section ul li strong {
    color: var(--text-color);
}

/* Solution Section List Styling */
.section.solution ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.section.solution li {
    margin: 0.5rem 0;
    padding-left: 2em;
    position: relative;
    color: var(--text-color);
    line-height: 1.2;
}

.section.solution li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.section.solution p {
    margin-bottom: 1rem;
}

.section.solution strong {
    color: var(--text-color);
}

/* Code Container Styling */
pre {
    background: #282a36;  /* Dark background */
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0.5rem 0;  /* Reduced from 1rem to 0.5rem */
    overflow-x: auto;
}

pre code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #f8f8f2;  /* Light text color */
    line-height: 1.6;
    display: block;
    white-space: pre;
}

/* Remove any extra whitespace */
pre code:first-child {
    padding-top: 0;
    margin-top: 0;
}

pre code:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Basic Syntax Highlighting */
.keyword { color: #ff79c6; }
.string { color: #f1fa8c; }
.function { color: #50fa7b; }
.comment { color: #6272a4; }
.number { color: #bd93f9; }

/* JavaScript Syntax Highlighting */
.language-javascript .const,
.language-javascript .let,
.language-javascript .var { 
    color: #ff79c6; 
}

.language-javascript .string { 
    color: #f1fa8c; 
}

.language-javascript .function { 
    color: #50fa7b; 
}

.language-javascript .comment { 
    color: #6272a4; 
}

.language-javascript .number { 
    color: #bd93f9; 
}

.language-javascript .operator { 
    color: #ff79c6; 
}

.language-javascript .property { 
    color: #8be9fd; 
}

.language-javascript .template-string { 
    color: #f1fa8c; 
}

.language-javascript .punctuation { 
    color: #f8f8f2; 
}

/* Highlight.js Theme Overrides */
.hljs {
    background: #282a36;
    color: #f8f8f2;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
    color: #ff79c6;
}

.hljs-function {
    color: #50fa7b;
}

.hljs-string,
.hljs-title,
.hljs-name,
.hljs-type,
.hljs-attribute,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
    color: #f1fa8c;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion,
.hljs-meta {
    color: #6272a4;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-name,
.hljs-strong {
    font-weight: normal;
}

/* Dracula Theme Colors */
.hljs-built_in,
.hljs-class .hljs-title {
    color: #8be9fd;  /* Cyan */
}

.hljs-number,
.hljs-literal {
    color: #bd93f9;  /* Purple */
}

.hljs-property {
    color: #66d9ef;  /* Light blue */
}

.hljs-operator,
.hljs-punctuation {
    color: #ff79c6;  /* Pink */
}

/* All text elements alignment */
.project-container *,
.section *,
.section-overview *,
.technical-breakdown *,
.lessons-content *,
pre,
code,
h1, h2, h3, p, li, ul {
    text-align: left !important;
}

/* Flex and grid containers alignment */
.project-links,
.side-by-side,
.lessons-content {
    justify-content: flex-start;
    align-items: flex-start;
}

/* Remove duplicate margin-bottom from last elements */
.section:last-child,
.side-by-side:last-child,
.project-content > *:last-child {
    margin-bottom: 0;
}

.get-in-touch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

/* Footer styling */
footer {
    width: 100%;
    padding: 1rem;  /* Reduced from 2rem */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

footer p {
    color: var(--text-color);
}

/* Contact Section Styling */
.contact-section {
    text-align: center;
    padding: 2rem;  /* Reduced from 3rem */
    margin-top: 1rem;  /* Reduced from 2rem */
    margin-bottom: 2rem;  /* Added to control bottom spacing */
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.contact-section h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.get-in-touch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background: var(--accent-color);
    border: none;
    border-radius: 50px;  /* Changed from 8px to 50px for pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Subtle shadow */
}

.get-in-touch:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);  /* Enhanced shadow on hover */
}