/* Custom Styles for Academic Portfolio */

:root {
    --primary-color: #047857;
    --primary-light: #65facc;
    --primary-dark: #065f46;
    --card-a-dark: #10b981;
    --myblue-non-hover: #04388c;
    --secondary-color: #9ca3af;
    --dark-bg: #1a1a1a;
    --dark-card: #242424;
    --dark-border: #3a3a3a;
    --light-text: #f1f5f9;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --green-glow: 0 0 20px rgba(4, 120, 87, 0.3);
}

/* General Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    background-image:linear-gradient(180deg,  rgba(2, 154, 50, 0.4) 0%, rgba(39, 111, 59, 0.2) 15%, rgba(4, 56, 41, 0.1) 35%),  url('../images/bg-pattern.svg');
    background-repeat: repeat;
    background-attachment: fixed;
}

a {
    color: #10b981;
    text-decoration: none;
}

a:hover {
    color: #11eba2;
    text-decoration: underline;
}


.mt-5{
    margin-top: 0;
} 

/* Hero Section */
.hero {
    /* background-image: var(--bs-gradient); */
    color: var(--light-text);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

/* .bg-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 50%, #047857 100%);
} */

.hero h1 {
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--light-text);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--green-glow) !important;
    border-color: var(--primary-color);
}

.card-title {
    font-weight: 600;
    color: var(--primary-light);
}

.intro-card-text {
    text-align: justify;
    text-justify: inter-word;
}

.profile-picture{
    max-width: 250px;
}

/* Navigation */
.navbar {
    background-color: var(--dark-bg) !important;
    box-shadow: 0 0.125rem 0.5rem rgba(4, 120, 87, 0.1);
    border-bottom: 1px solid var(--dark-border);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--primary-light) !important;
    text-shadow: 0 0 10px rgba(4, 120, 87, 0.3);
}

.nav-link {
    transition: color 0.3s ease, text-shadow 0.3s ease;
    color: var(--secondary-color) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light) !important;
    text-shadow: 0 0 10px rgba(4, 120, 87, 0.3);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--dark-bg) !important;
    border-top: 1px solid var(--dark-border);
}

/* Contact Icons */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--dark-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.card:hover .icon-box {
    background-color: var(--primary-color);
    box-shadow: var(--green-glow);
}

.card:hover .icon-box i {
    color: var(--dark-bg);
}

.icon-box i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.card a {
    color: var(--card-a-dark);
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-decoration: none;
}

.card a:hover {
    color: #11eba2;
    text-shadow: 0 0 8px rgba(4, 120, 87, 0.4);
}

.btn-primary {
    background-color: var(--myblue-non-hover);
}

/* Musings/Blog Styles */
.writing-list-item {
    padding: 1.5rem;
    background-color: var(--dark-card);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.writing-list-item:hover {
    border-left-color: var(--primary-light);
    box-shadow: var(--green-glow);
    transform: translateX(8px);
}

.writing-title {
    margin: 0;
    color: var(--light-text);
}

.writing-title a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.writing-title a:hover {
    color: #10b981;
    text-shadow: 0 0 8px rgba(4, 120, 87, 0.4);
}

.writing-card {
    border-left: 4px solid var(--primary-color);
}

.writing-card:hover {
    border-left-color: var(--primary-light);
}

.writing-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
}

.markdown-content {
    line-height: 1.8;
    color: var(--light-text);
}

.markdown-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    border-bottom: 1px solid var(--dark-border);
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-light);
}

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

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-style: italic;
}

.markdown-content code {
    background-color: rgba(4, 120, 87, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #10b981;
    border: 1px solid var(--primary-color);
}

.markdown-content pre {
    background-color: var(--dark-bg);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--dark-border);
    overflow-x: auto;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 10px rgba(4, 120, 87, 0.05);
}

.markdown-content pre code {
    color: inherit;
    padding: 0;
    background-color: transparent;
    border: none;
}

.author-list {
    color: rgba(209, 205, 199, 0.75) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
    }

    .icon-box i {
        font-size: 1.5rem !important;
    }
}

/* Utility Classes */
.text-primary-hover:hover {
    color: var(--primary-light);
}

.shadow-sm {
    box-shadow: var(--shadow);
}

.transition {
    transition: all 0.3s ease;
}

/* Green accent glow effect */
.glow-green {
    box-shadow: var(--green-glow);
}

/* Writing Article */
.writing-article {
    max-width: 800px;
    margin: 0 auto;
}

.writing-article h1 {
    color: var(--primary-light);
    font-weight: 700;
}
