/* Base Styles */
body {
    background-color: #eff4f7;
    color: #333333;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 1.2em;
    margin: 0;
    margin-top: 4.5em; /* Extra margin beyond navbar height for breathing room */
    line-height: 1.6;
}
@media screen and (max-device-width: 480px){
    body{
        font-size: 3em;	
        margin-top: 0.4em; /* Mobile navbar is relative, so less margin needed */
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    gap: 1.5em;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.6em 2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar a {
    color: #666;
    text-decoration: none;
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 0.4em;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #0056b3;
    background-color: rgba(0, 86, 179, 0.1);
}

.navbar a.active {
    color: #0056b3;
    background-color: rgba(0, 86, 179, 0.15);
    font-weight: 600;
}

@media screen and (max-device-width: 480px){
    .navbar {
        position: relative;
        justify-content: center;
        margin-bottom: 1em;
        background: #ffffff;
        backdrop-filter: none;
        padding: 0.5em 1em;
    }
    
    .navbar a {
        font-size: 2em;
        padding: 0.3em 0.6em;
    }
}

@media screen and (max-device-width: 480px){
    .navbar {
        position: relative;
        justify-content: center;
        margin-bottom: 1em;
        background: #ffffff;
        backdrop-filter: none;
        padding: 0.8em 1em;
    }
    
    .navbar a {
        font-size: 2em;
        padding: 0.3em 0.6em;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }

/* Layout */
.outer {
    display: table;
    position: absolute;
    height: 100%;
    width: 100%;
}
.middle {
    display: table-cell;
    vertical-align: middle; 
}
.inner {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    padding: 0 20px;
}
@media screen and (max-device-width: 480px){
    .inner{
        max-width: 100%;
    }
}

/* Profile Section */
.name {
    font-size: 2.4em;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
}
.under-name{
    font-size: 1.4em;
    font-weight: 500;
    color: #0056b3;
    margin-top: 0.2em;
    display: inline-block;
    letter-spacing: -0.01em;
}

.profile_pic {
    margin-bottom: 1.2em;
}
@media screen and (max-device-width: 480px){
    .profile_pic {
        margin-bottom: 0.3em;
    }
}
    
.profile_pic img {
    display: block;
    margin: auto;
    border-radius: 160px;
    overflow: hidden;
    border-style: solid;
    border-color: #0056b3;
    border-width: 3px;
    width: 10em;
    height: 10em;
}

/* Main Card */
.main_card {
    padding-bottom: 20px;
    padding-top: 16px;
    border-radius: 64px;
    margin-bottom: 2em;
}

/* Social Icons */
.social_icons {
    margin-top: 0.1em;
    position: relative;
    display: inline-block;
}

.social-link {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social_icon {
    margin-left: 8px;
    margin-right: 8px;
    width: 64px;
    height: 64px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.social_icon:hover {
    filter: grayscale(0%) brightness(110%);
}

@media screen and (max-device-width: 480px){
    .social_icon{
        margin-left: 16px;
        margin-right: 16px;
    }
}

.email{
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #666;
}

/* Blogposts Link */
.blogposts-link-container {
    margin-top: 1.1em;
}

.blogposts-link {
    display: inline-block;
    font-size: 0.9em;
    font-weight: 600;
    color: #0056b3;
    text-decoration: none;
    padding: 0.8em 1.5em;
    border: 2px solid #0056b3;
    border-radius: 2em;
    transition: all 0.3s ease;
    background: transparent;
    letter-spacing: 0.02em;
}

.blogposts-link:hover {
    color: #ffffff;
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
    text-decoration: none;
}

/* Blog Link Styling */
.blog-link {
    display: inline-block;
    font-size: 0.9em;
    font-weight: 500;
    color: #0056b3;
    text-decoration: none;
    padding: 0.7em 1.2em;
    border: 2px solid rgba(0, 86, 179, 0.2);
    border-radius: 0.5em;
    transition: all 0.3s ease;
    background: rgba(0, 86, 179, 0.05);
}

.blog-link:hover {
    color: #007bff;
    background: rgba(0, 86, 179, 0.1);
    border-color: rgba(0, 86, 179, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Headers */
h1 {
    font-size: 2.4em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1em;
    letter-spacing: -0.02em;
}

h3{
    margin-top: 0.5em;
    margin-bottom: 1em;
    font-size: 1.8em;
    font-weight: 600;
    text-decoration: none;
    color: #333333;
    letter-spacing: -0.02em;
}

.h3-small {
    font-size: 1.4em !important;
    margin-top: 2.5em !important;
    text-align: left;
    margin-left: 0.2em;
}
@media screen and (max-device-width: 480px){
    h3{
        margin-top: 1em;
    }
}

h4.project-subsection {
    margin-top: 2em;
    margin-bottom: 1.2em;
    font-size: 1.4em;
    font-weight: 500;
    color: #0056b3;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Project Cards */
.proj-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 0.6em;
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.enhanced-card {
    background: #ffffff;
}

.enhanced-card .proj-content {
    padding: 1.2em;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proj-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.proj-card img{
    width: 300px;
    transition: filter .3s ease, transform .3s ease;
    display: block;
}

.blob-large .proj-card img {
    width: 100%;
}

@media screen and (max-device-width: 480px){
    .proj-card img{
        width: 100%;
    }
}
.proj-card:hover img{
    filter: brightness(105%);
    transform: scale(1.03);
}

.blob{
    display: flex;
    flex-direction: column;
    width: 300px;
}

.blob-large {
    width: calc(600px + 1em);
}

@media screen and (max-device-width: 480px){
    .blob{
        width: 80%;
        padding-bottom: 1em;
    }
    .blob-large{
        width: 80%;
    }
}

.project-blobs{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2.5em;
    column-gap: 1.5em;
}

/* Project Text */
.proj-text{
    display: block;
    flex-grow: 1;
}
.proj-desc{
    font-size: 0.85em;
    color: #666;
    margin: 0.5em 0 1em;
}
.proj-title{
    font-size: 1em;
    font-weight: 600;
    display: inline-block;
}
.proj-title-centered{
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.3em;
}

.blob-large .proj-title-centered {
    font-size: 1.4em;
}

.blob-large .proj-desc {
    font-size: 1em;
}

.view-project {
    font-size: 0.6em;
    font-weight: 500;
    color: #0056b3;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5em;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    align-self: center;
}


.view-project:hover {
    color: #007bff;
    transform: translateX(3px);
    text-decoration: none;
}

/* Small Projects */
.project-lines{
    margin-bottom: 4em;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.line {
    display: flex;
    align-items: center;
    padding: 0.4em 0.5em;
    border-radius: 0.4em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.line:hover {
    background-color: rgba(0, 86, 179, 0.05);
    transform: translateX(5px);
}

.line:not(:last-child) {
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

.line-Proj-Container{
    display: flex;
    align-items: center;
    width: 100%;
}

.project-icon {
    font-size: 1.2em;
    margin-right: 1em;
    flex-shrink: 0;
}

@media screen and (max-device-width: 480px){
    .line{
        padding-left: 1em;
    }
}
.line .proj-title {
    font-size: 0.85em;
    font-weight: 500;
}

.line-proj-desc {
    font-size: 0.65em;
    color: #666;
    margin-top: 0.2em;
}

.line .proj-text {
    padding: 0;
    line-height: 1.2;
}

/* Links */
a{
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    transition: color .3s ease;
}
a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Improved spacing */
.desc {
    font-size: 0.9em;
}

.proj-content .proj-desc {
    flex-grow: 1;
}

.proj-content .view-project {
    align-self: center;
}

.blob-large .proj-content .view-project {
    align-self: center;
}

.proj-title-centered a {
    color: #333;
}

.proj-title-centered a:hover {
    color: #0056b3;
}

.line .proj-title a {
    color: #333;
}

.line .proj-title a:hover {
    color: #0056b3;
}

/* Consulting Cards */
.consulting-blobs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 2.5em;
}

.consulting-blob {
    display: flex;
    width: calc(50% - 0.75em);
}

.consulting-card {
    display: flex;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 0.6em;
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
    width: 100%;
}

.consulting-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.consulting-card img {
    width: 64px;
    height: 64px;
    margin: 1.2em;
    border-radius: 0.3em;
    transition: filter .3s ease, transform .3s ease;
}

.consulting-card:hover img {
    filter: brightness(105%);
    transform: scale(1.03);
}

.consulting-content {
    padding: 1.2em;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.consulting-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.3em;
}

.consulting-title a {
    color: #333;
}

.consulting-title a:hover {
    color: #0056b3;
}

.consulting-desc {
    font-size: 0.85em;
    color: #666;
    flex-grow: 1;
    margin-bottom: 0.8em;
}

.learn-more {
    font-size: 0.75em;
    font-weight: 500;
    color: #0056b3;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    align-self: center;
}

.learn-more:hover {
    color: #007bff;
    transform: translateX(3px);
    text-decoration: none;
}

@media screen and (max-device-width: 480px){
    .consulting-blobs{
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
    }
    .consulting-blob{
        width: 80%;
        padding-bottom: 1em;
    }
}