/* ACE Industries - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F5F4F0;
    color: #1D1D1F;
    transition: color 0.3s ease;
    scroll-behavior: smooth;
}

/* Smooth scrolling with offset for sticky header */
html {
    scroll-padding-top: 5rem; /* Adjust based on header height */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(212, 175, 55, 0.6);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #D4AF37;
}

/* Hero gradient */
.hero-gradient {
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0) 70%);
}

/* Project card hover effect */
.project-card {
    transition: all 0.3s ease;
}

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

/* Post card hover effect */
.post-card {
    transition: all 0.3s ease;
}

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

/* Tech stack pill hover */
.tech-pill {
    transition: all 0.2s ease;
}

.tech-pill:hover {
    background-color: #D4AF37;
    color: white;
    transform: scale(1.05);
}

/* Section divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
    opacity: 0.3;
    margin: 2rem 0;
}

/* Contact input focus */
.contact-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #D4AF37;
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 100vh;
}

/* Feature card hover effect (for project pages) */
.feature-card {
    transition: all 0.3s ease;
}

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

/* Blog content styling */
.blog-content {
    color: #1D1D1F;
    line-height: 1.8;
    font-size: 1.125rem; /* Base font size for consistency */
}

.blog-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.blog-content h1:first-child {
    margin-top: 0;
}

.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #D4AF37;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 2;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    padding-left: 0;
}

.blog-content li {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 2;
}

.blog-content ul li {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 0.5rem;
}

.blog-content ol li {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #D4AF37;
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #7C7C7C;
    font-size: 1.125rem; /* Added consistent font size */
}

.blog-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.blog-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow-y: hidden;
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #f9fafb;
    border: none;
    line-height: 1.6;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
    display: block;
    width: 100%;
    tab-size: 4;
    font-feature-settings: "liga" 0;
    font-variant-ligatures: none;
    text-rendering: optimizeLegibility;
}

.blog-content a {
    color: #D4AF37;
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

.blog-content strong {
    font-weight: 700;
}

.blog-content em {
    font-style: italic;
}

.blog-content img {
    margin: 2rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Code syntax highlighting adjustments */
.blog-content pre[class*="language-"] {
    background-color: #1f2937;
    color: #f9fafb;
}

/* Basic syntax highlighting for common languages */
.blog-content pre code.language-javascript,
.blog-content pre code.language-js {
    color: #f8f8f2;
}

.blog-content pre code.language-javascript .keyword,
.blog-content pre code.language-js .keyword {
    color: #ff79c6;
}

.blog-content pre code.language-javascript .string,
.blog-content pre code.language-js .string {
    color: #f1fa8c;
}

.blog-content pre code.language-javascript .comment,
.blog-content pre code.language-js .comment {
    color: #6272a4;
}

.blog-content pre code.language-javascript .function,
.blog-content pre code.language-js .function {
    color: #50fa7b;
}

.blog-content pre code.language-javascript .class,
.blog-content pre code.language-js .class {
    color: #8be9fd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem; /* Base font size for mobile */
    }
    
    .blog-content h1 {
        font-size: 1.875rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-content p {
        font-size: 1rem;
    }
    
    .blog-content li {
        font-size: 1rem;
    }
    
    .blog-content blockquote {
        font-size: 1rem;
    }
} 