/* Basic Reset & Typography */
:root {
    --blue: #405CFF;
    --light-blue: #D3E7FF;
    --dark-blue: #131B72;
    --text-color: #182B75;
    --light-gray: #C2D3FA;
    --medium-gray: #63A9E1;
    --border-color: #277DC7;
    --background: #D3E7FF;
    --link-color: #0073aa;
    --button-bg: #405CFF;
    --button-hover-bg: #0085ba;
    --button-text: #ffffff;
    --button-secondary-bg: #5B9BED;
    --button-secondary-text: #ffffff;
    --button-secondary-border: #5B9BED;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: var(--text-color);
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Dropdown styles for hero My Projects button */
/* Dropdown styles for hero My Projects button */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    background: var(--primary-color, #007bff);
    color: #fff;
    border: none;
    padding: 0.75em 1.5em;
    font-size: 1em;
    border-radius: 4px;
    transition: background 0.2s;
}

.dropdown-toggle:focus {
    outline: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 100;
    padding: 0.5em 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75em 1.5em;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
} 

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    min-width: 120px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.5;
}

.button:hover {
    text-decoration: none;
}

.button-primary {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.button-primary:hover {
    background-color: var(--button-hover-bg);
}

.button-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border-color: var(--button-secondary-border);
}

.button-secondary:hover {
    background-color: #e0e0e0;
}

.button-small {
    padding: 8px 15px;
    font-size: 0.9em;
}


/* Header */
.main-header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.main-header .logo img {
    height: 40px; /* Adjust as needed */
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    margin-right: 20px;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--link-color);
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--link-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    margin: -15px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: var(--text-color);
    border-radius: 3px;
    z-index: 1;
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

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

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
    color: var(--dark-blue);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #444;
}

.hero-content .button {
    margin: 0 10px 20px 0;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Used for social links in both the hero section and the footer */
.social-links-hero {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links-hero a {
    color: var(--dark-blue);
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-links-hero a:hover {
    color: var(--link-color);
    text-decoration: none;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: var(--background);
}

.features-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--dark-blue);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-item img {
    width: 100%;
    object-fit: cover;
}

.feature-item h3 {
    font-size: 1.3em;
    margin: 15px 20px 10px;
    color: var(--dark-blue);
}

.feature-item p {
    font-size: 1em;
    margin: 0 20px 15px;
    color: #555;
    flex-grow: 1;
}

.feature-item .post-meta {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.feature-item .date {
    color: #666;
    font-size: 0.9em;
}

.feature-item .button {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Showcase Section */
.showcase-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.showcase-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--dark-blue);
}

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

.showcase-item {
    background-color: var(--background);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
}

.showcase-item img {
    margin: 0.3em auto;
    height: 250px;
    object-fit: cover;
    display: block;
}

.showcase-item h3 {
    font-size: 1.3em;
    margin: 15px 15px 5px;
    color: var(--link-color);
}

.showcase-item p {
    font-size: 1em;
    margin: 0 15px 15px;
    color: #555;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--blue);
    color: var(--button-text);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--button-text);
}

.cta-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .button {
    background-color: #fff;
    color: var(--blue);
    border-color: #fff;
    padding: 15px 40px;
    font-size: 1.2em;
}

.cta-section .button:hover {
    background-color: #f0f0f0;
    color: var(--dark-blue);
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #eee;
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--link-color);
    text-decoration: none;
}

/* Deprecated: was used for footer social links, now replaced by .social-links-hero */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links img {
    height: 24px;
    width: 24px;
    filter: invert(1); /* Makes them white or light-colored */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #ccc;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .current-page {
    background: #333;
    color: white;
}

.pagination a:hover {
    background: #eee;
}

.create-post-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    display: flex;
    gap: 1rem;
}

.form-group:last-child .button {
    flex: 1;
    margin: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 92, 255, 0.1);
}

.error-message {
    color: #dc3545;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #ffe6e6;
}

.success-message {
    color: #28a745;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #e6ffe6;
}

.form-group .button {
    margin-right: 1rem;
}

.form-group .button:last-child {
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: relative;
    }

    .main-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-nav .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-links a {
        padding: 10px 20px;
        display: block;
        width: 100%;
    }

    .nav-actions {
        display: none;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        background: var(--background);
        width: 100%;
    }

    .nav-actions .button {
        margin: 5px 0;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .button {
        margin: 10px;
    }

    .social-links-hero {
        justify-content: center;
    }

    .hero-image {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .cta-section h2 {
        font-size: 2.2em;
    }
    .cta-section p {
        font-size: 1.2em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }

    .app-feature {
        flex-direction: column !important;
        gap: 2rem;
        padding: 1rem;
    }
    
    .app-feature-image {
        max-width: auto;
    }
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-header h1 {
    font-size: 2.5em;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-date {
    margin-right: 1rem;
}

.post-author {
    font-style: italic;
}

.post-image {
    margin: 2rem 0;
}

.post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.post-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

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

.post-actions {
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-actions .button {
    margin-right: 1rem;
}

.post-navigation {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .blog-post {
        margin: 1rem;
        padding: 1rem;
    }

    .post-header h1 {
        font-size: 2em;
    }
}

/* Resume styles */

.resume-section {
    background-color: var(--background);
    padding: 60px 0;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resume-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-blue);
}

.resume-header h1 {
    color: var(--dark-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.resume-header p {
    color: var(--text-color);
    font-size: 1.1em;
}

.resume-section-title {
    color: var(--dark-blue);
    font-size: 1.8em;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
}

.experience-item {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.experience-item h3 {
    color: var(--blue);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.experience-item p {
    color: var(--text-color);
    margin: 5px 0;
}

.experience-item ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 10px;
    color: var(--text-color);
}

.experience-item ul li {
    margin-bottom: 8px;
}

.skills-list, .awards-list, .languages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
}

.skills-list li, .awards-list li, .languages-list li {
    padding: 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Login Form Styles */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--dark-blue);
    font-size: 2em;
    margin-bottom: 10px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-blue);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 92, 255, 0.1);
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.login-actions .button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}

.create-account-link {
    text-align: center;
    margin-top: 5px;
    color: var(--text-color);
}

.create-account-link a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    margin-left: 5px;
}

.create-account-link a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #ffe6e6;
    color: #dc3545;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.form-hint {
    display: block;
    color: var(--text-color);
    font-size: 0.85em;
    margin-top: 5px;
    opacity: 0.8;
}

.success-message {
    background-color: #e6ffe6;
    color: #28a745;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* Improve form spacing for create account */
.login-form .form-group:last-of-type {
    margin-bottom: 25px;
}

.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(64, 92, 255, 0.1);
}

/* Add transition effects */
.login-form input {
    transition: all 0.3s ease;
}

.button {
    transition: all 0.3s ease;
}

/* --- Enhanced Blog Form & Image Upload Styles --- */
.form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    background: none;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.form-group input[type="file"]:hover::-webkit-file-upload-button {
    background: #2a3eb1;
}

.form-group input[type="file"]::file-selector-button {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.form-group input[type="file"]:hover::file-selector-button {
    background: #2a3eb1;
}

.image-preview {
    margin-top: 1rem;
    text-align: left;
}
.image-preview img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    background: #fafbfc;
}

.create-post-form h1 {
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
    color: var(--blue);
    font-weight: 700;
}

.form-group label {
    font-size: 1.08rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 600px) {
    .create-post-form {
        padding: 1rem;
    }
    .image-preview img {
        max-width: 100%;
        max-height: 120px;
    }
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.2s ease;
}

.app-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.app-feature-content {
    flex: 1;
    max-height: 1000px;
}

.app-feature-content h3 {
    color: var(--dark-blue);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.app-feature-content p {
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.6;
}

.app-feature-image {
    flex: 1;
    max-width: 400px;
}

.app-feature-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

@media (max-width: 768px) {
    .app-feature {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .app-feature-image {
        max-width: 100%;
    }
}