/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a2332 25%, #272e41 50%, #1f2632 75%, #1a2332 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed navigation */
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* HERO SECTION REFERENCE STYLE */
.hero {
    background: transparent;
    padding: 5rem 0 2rem 0;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image {
    margin-bottom: 2.5rem;
}

/* HERO NAME GRADIENT */
.hero-name {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    margin-top: 0;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #b3bed7 0%, #23263a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-motto {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    /*color: #4f8bff;*/
    color: #b35454;
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b3bed7;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 0;
    letter-spacing: 0.1px;
}

.hero-description-section {
    background: transparent;
    padding: 0 0 2.5rem 0;
}

.hero-description {
    max-width: 600px;
    margin: 2.5rem auto 0 auto;
    color: #bdc6e8;
    text-align: left;
}

.hero-description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify !important;
    text-justify: inter-word !important;
    word-spacing: 0.05em;
    letter-spacing: 0.01em;
    /* Ensure proper word breaking */
    word-break: normal;
    overflow-wrap: break-word;
}

/* PROFILE PHOTO SIZING */
.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(44, 60, 120, 0.18);
    border: none;
    background: #23263a;
    display: block;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .profile-photo {
        width: 120px;
        height: 120px;
        border-radius: 18px;
        object-fit: cover;
        margin-bottom: 2.5rem;
    }
    .hero-name {
        font-size: 2rem;
    }
    .hero-motto {
        font-size: 1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-description {
        padding: 0 0.5rem;
    }
}
/* END HERO SECTION REFERENCE STYLE */

/* Section Styling */
section {
    padding: 4rem 0;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Ensure no unwanted borders or lines */
section:before,
section:after {
    content: none;
    display: none;
}

/* Additional section cleanup */
section {
    margin: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
}

/* Ensure clean separation between sections */
section + section {
    border-top: none;
    margin-top: 0;
}

/* SECTION TITLE GRADIENT */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    color: #b3bed7;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* Projects Section */
.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 139, 255, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.project-type {
    font-size: 0.9rem;
    background: #4f8bff;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.project-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 500;
}

.projects-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-link {
    color: #4f8bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #3d75e8;
}

/* Reflections Section */
.reflections {
    background: transparent;
}

.reflections-list {
    max-width: 700px;
    margin: 0 auto;
}

.reflection-item {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); - removed to eliminate visual lines */
}

.reflection-item:last-child {
    border-bottom: none;
}

.reflection-title {
    margin-bottom: 0.5rem;
}

.reflection-title a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.reflection-title a:hover {
    color: #4f8bff;
}

.reflection-preview {
    font-size: 0.95rem;
    color: #b3bed7;
    margin-top: 0.5rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-info {
    max-width: 400px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-link {
    color: #4f8bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #3d75e8;
}

/* Footer */
.footer {
    background: transparent;
    padding: 2rem 0;
}

.footer-text {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    color: #4f8bff;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-motto {
        font-size: 1rem;
    }
    
    .hero-description {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-description p {
        text-align: justify !important;
        text-justify: inter-word !important;
        word-spacing: 0.05em;
        letter-spacing: 0.01em;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .top-nav {
        padding: 0.75rem 1rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .nav-contact {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Smooth transitions */
* {
    transition: opacity 0.3s ease;
}

/* Selection styling */
::selection {
    background: #4f8bff;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #1a1f36;
}

::-webkit-scrollbar-thumb {
    background: #4f8bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d75e8;
}

/* Reflection Pages */
.reflection-page {
    min-height: 100vh;
    padding: 4rem 0;
    background: #1a1f36;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    color: #4f8bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #3d75e8;
}

.reflection-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    /* Ensure proper text container */
    text-align: justify;
    text-justify: inter-word;
}

.reflection-content .reflection-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
}

.reflection-content .reflection-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #4f8bff;
    margin-bottom: 2rem;
    font-weight: 500;
}

.reflection-text {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto;
    word-spacing: 0.05em;
    letter-spacing: 0.01em;
    /* Additional justification properties */
    text-align-last: left;
    -webkit-text-align-last: left;
    -moz-text-align-last: left;
    /* Ensure proper word breaking */
    word-break: normal;
    overflow-wrap: break-word;
}

.reflection-text p {
    margin-bottom: 1.5rem;
    text-indent: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.8;
    margin-left: 0;
    margin-right: 0;
}

.reflection-link {
    color: #4f8bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.reflection-link:hover {
    color: #6ba3ff;
    border-bottom-color: #6ba3ff;
}

.reflection-text ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.reflection-text li {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.reflection-text strong {
    color: #4f8bff;
    font-weight: 600;
}

.reflection-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    opacity: 0.7;
}

.reflection-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #4f8bff;
}

.reflection-author {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .reflection-content .reflection-title {
        font-size: 2rem;
    }
    
    .reflection-text {
        font-size: 1rem;
    }
    
    .reflection-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* TOP NAVIGATION */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 139, 255, 0.2);
    z-index: 1000;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #b3bed7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #4f8bff;
}

.nav-contact {
    color: #b3bed7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
    white-space: nowrap;
    display: inline-block;
}

.nav-contact:hover {
    color: #4f8bff;
    border-color: rgba(79, 139, 255, 0.3);
    background: rgba(79, 139, 255, 0.05);
}

/* Minimalist SVG icons */
.icon-linkedin {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    background: url('data:image/svg+xml;utf8,<svg fill="%23b3bed7" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>') no-repeat center/contain;
}
.icon-github {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    background: url('data:image/svg+xml;utf8,<svg fill="%23b3bed7" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.477 2 2 6.484 2 12.021c0 4.428 2.865 8.184 6.839 9.504.5.092.682-.217.682-.482 0-.237-.009-.868-.014-1.703-2.782.605-3.369-1.342-3.369-1.342-.454-1.154-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.004.07 1.532 1.032 1.532 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.339-2.22-.253-4.555-1.112-4.555-4.951 0-1.093.39-1.987 1.029-2.686-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.025A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.295 2.748-1.025 2.748-1.025.546 1.378.202 2.397.1 2.65.64.699 1.028 1.593 1.028 2.686 0 3.847-2.338 4.695-4.566 4.944.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.749 0 .267.18.577.688.48C19.138 20.2 22 16.447 22 12.021 22 6.484 17.523 2 12 2Z"/></svg>') no-repeat center/contain;
}
.icon-blog {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23b3bed7" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="4" width="16" height="16" rx="2" fill="none" stroke="%234f8bff"/><path d="M8 8h8M8 12h8M8 16h4" stroke="%23b3bed7" stroke-linecap="round"/></svg>') no-repeat center/contain;
}

.top-nav .icon-linkedin, .top-nav .icon-github, .top-nav .icon-blog {
    margin-right: 0.4em;
    transition: opacity 0.2s ease;
}

.nav-link:hover .icon-linkedin,
.nav-link:hover .icon-github,
.nav-link:hover .icon-blog {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .top-nav ul {
        gap: 1.5rem;
    }
    .top-nav .nav-link {
        font-size: 1rem;
    }
}

/* Remove footer/contact section styles if present */
.footer, .contact { display: none !important; }

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.project-link:hover {
    transform: translateY(-2px);
}

.project-link:hover .project-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}