@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap");


/* Reset Styles */
html, body, div, span, h1, h2, h3, p, a,
code, img, s, strong, ul, li, label, article, details,
footer, header, section, video {
	margin: 0;
	padding: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	list-style: none;
}

/* Block Elements */
article, details, footer, header, section {
	display: block;
}

/* Base Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Inter", "Source Sans Pro", Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #4a5568;
    background-color: #f7fafc;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
	transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	color: #2b6cb0;
	text-decoration: none;
}
	a:hover {
		border-bottom-color: transparent;
		color: #2b6cb0;
		text-decoration: none;
	}

strong {
	color: #2d3748;
	font-weight: 500;
}

p {
	margin: 0 0 1.5em 0;
}

h1 {
    color: #ffffff;
    font-weight: 600;
    line-height: 1.15em;
    margin: 0 0 0.5em 0;
    letter-spacing: -0.01em;
}

h2, h3 {
    color: #1a202c;
    font-weight: 600;
    line-height: 1.3em;
    margin: 0 0 0.75em 0;
    font-size: 22px;
    letter-spacing: -0.01em;
}

code {
	background: #edf2f7;
	border-radius: 0.35em;
	border: solid 1px #e2e8f0;
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	margin: 0 0.25em;
	padding: 0.25em 0.65em;
}

/* Containers and Layouts */
.container {
	flex: 1;
	margin: 0;
	padding: 0;
	max-width: 100%;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin-top: 0;
	margin-left: -2em;
}

.row > * {
	padding: 0 0 0 2em;
	width: 100%;
	box-sizing: border-box;
}

/* Main */

#main {
    margin-left: 20%;
    width: 80%;
    background-color: #f7fafc;
    box-sizing: border-box;
    overflow: hidden;
    padding: 3em 4em;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #2b6cb0, #4fd1c5);
    z-index: 999;
    transform-origin: left center;
}

.section {
    padding: 4em 0;
    border-bottom: 1px solid #e2e8f0;
}

.section:last-of-type {
    border-bottom: none;
}

.content-container {
    max-width: 760px;
    margin: 0 auto;
}


/* Header */

#header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background-color: #0f172a;
	background-attachment: fixed;
	background-image: url("../../images/bg3.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
	height: 100vh;
	left: 0;
	padding: 1.5em;
	position: fixed;
	text-align: center;
	top: 0;
	width: 20%;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	overflow: hidden;
	font-size: 14pt;
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
	margin: 0;
}

#header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.95));
    z-index: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#header .header-inner {
    position: relative;
    z-index: 1;
}

#header .avatar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1.25em;
	box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: box-shadow 0.3s ease;
}

#header .avatar:hover {
	box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.5), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Header Styles */
#header .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 2.5em 1.25em;
}

#header .headline {
    font-size: 1.05em;
    margin: 0.25em 0 0.5em;
    color: #4fd1c5;
    font-weight: 500;
    letter-spacing: 0.02em;
}

#header .subheadline {
    font-size: 0.85em;
    margin: 0 0 1.5em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    line-height: 1.5;
    max-width: 90%;
}

#header .icon-container {
    margin-top: 0.75em;
}

#header .icons {
    display: flex;
    gap: 1.25em;
    margin: 0;
    padding: 0;
}

#header .icons li {
    margin: 0;
    padding: 0;
}

#header .icons a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    font-size: 0.9em;
}

#header .icons a:hover {
    color: #4fd1c5;
    transform: translateY(-2px);
}

#header .nav-links {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    width: 100%;
}

#header .nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    padding: 0.6em 1em;
    border-bottom: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#header .nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

#header .nav-links a.active {
    color: #4fd1c5;
    background: rgba(79, 209, 197, 0.1);
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    margin: 1.5em 0;
    padding: 1.75em;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.skills-container h3 {
    color: #1a202c;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25em;
    text-align: left;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background: #edf2f7;
    color: #2d3748;
    padding: 0.4em 0.9em;
    border-radius: 6px;
    font-size: 0.85em;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    max-width: 20rem;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    border: 1px solid #e2e8f0;
}


.skills-list li:hover {
    background: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
    transform: translateY(-1px);
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skills-row .skills-container {
    flex: 1 1 280px;
}

/* Work Item */
.work-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.work-item:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.work-item img:hover {
	transform: scale(1.05);
	transition: transform 0.3s ease-in-out;
}

/* Experience Section */
.experience-list {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.experience-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.75em 2em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    width: 100%;
    border-left: 3px solid transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.experience-item:hover {
    border-left-color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.experience-role {
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2em;
}

.experience-meta {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 1em;
    font-weight: 400;
}

.experience-item ul {
    margin: 0;
    padding-left: 1.25em;
    list-style: disc;
}

.experience-item li {
    margin-bottom: 0.4em;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

@media screen and (max-width: 736px) {
    .experience-item {
        padding: 1.25em 1.25em;
    }
}

/* Scroll reveal helper */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

.project-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    width: 100%;
    border: 1px solid #e2e8f0;
    height: 100%;
    border-top: 3px solid transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-top-color: #2b6cb0;
}

.project-thumbnail {
    width: 40%;
    position: relative;
    margin-right: 1.5em;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-thumbnail-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75em 1em;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    pointer-events: none;
}

.project-thumbnail-label {
    color: #ffffff;
    font-size: 0.85em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.35em 0.9em;
    border-radius: 999px;
}

.project-thumbnail-label i {
    font-size: 0.9em;
}

.project-thumbnail::before {
    content: "";
    display: block;
    padding-bottom: 60%;
}

.project-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-thumbnail:hover img {
    transform: scale(1.03);
}

.project-thumbnail:hover .project-thumbnail-overlay {
    opacity: 1;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    color: #1a202c;
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.project-content p {
    font-size: 0.9em;
    color: #718096;
    line-height: 1.65em;
    margin-bottom: 1em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-bottom: 1em;
}

.tech-tag {
    background: #edf2f7;
    color: #2b6cb0;
    padding: 0.25em 0.7em;
    border-radius: 4px;
    font-size: 0.78em;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.tech-details-btn {
    background: transparent;
    border: 1.5px solid #2b6cb0;
    color: #2b6cb0;
    padding: 0.45em 1.1em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85em;
    font-weight: 500;
    align-self: flex-start;
}

.tech-details-btn:hover {
    background: #2b6cb0;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 1000px;
    position: relative;
    background: transparent;
    transition: transform 0.3s ease;
}

.tech-modal {
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    padding: 2.5em;
    margin: 10% auto;
    border: 1px solid #e2e8f0;
}

.close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: #4fd1c5;
    text-decoration: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
}

/* Swiper Container Styles */
.swiper-container {
    width: 100%;
    height: 70vh;
    max-height: 800px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    max-width: 80%;
    font-size: 1em;
    color: #fff;
    z-index: 10;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #4fd1c5;
    background: transparent;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #fff;
    transform: scale(1.1);
}

.swiper-button-prev {
    left: 20px;
}

.swiper-button-next {
    right: 20px;
}

/* Technical Details Modal */
.tech-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 20px;
}

.tech-content::-webkit-scrollbar {
    width: 8px;
}

.tech-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.tech-content::-webkit-scrollbar-thumb {
    background: #2b6cb0;
    border-radius: 4px;
}

.tech-content::-webkit-scrollbar-thumb:hover {
    background: #2c5282;
}

.tech-details h4 {
    color: #1a202c;
    margin: 1.5em 0 0.5em;
    font-size: 1.2em;
}

.tech-details h4:first-child {
    margin-top: 0;
}

.tech-details ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 1em 0;
}


.tech-details li {
    margin-bottom: 0.5em;
    line-height: 1.4;
}

@media screen and (max-width: 980px) {
    #header {
        position: relative;
        width: 100%;
        height: auto;
        padding: 2.5em 1.5em;
        box-shadow: none;
    }

    #main {
        margin-left: 0;
        width: 100%;
        padding: 2.5em 1.5em 3em;
    }

    #header .header-inner {
        height: auto;
        padding: 1em 0;
    }

    #header .nav-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25em 0.5em;
    }

    #header .avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 1em;
    }

    .section-title {
        text-align: center;
    }

    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .experience-list,
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25em;
        max-width: 100%;
    }

    .experience-item,
    .project-item {
        width: 100%;
        max-width: 100%;
    }

    .project-item {
        flex-direction: column;
    }

    .project-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1em;
    }
}

/* Contact Section */
.contact-container {
    max-width: 400px;
    margin: 0 auto;
}
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    padding: 0.75em 1em;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease;
}
.contact-info li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.contact-info li i {
    margin-right: 12px;
    font-size: 1.1em;
    color: #2b6cb0;
    width: 1.5em;
    text-align: center;
}
.contact-info .fa-mobile-alt {
    font-size: 1.3em;
}

.contact-info span,
.contact-info a {
    font-size: 0.95em;
    color: #4a5568;
    text-decoration: none;
}

.blurred-number {
    filter: blur(4px);
    margin-left: 4px;
    transition: filter 0.2s ease;
}
.blurred-number:hover {
    filter: none;
}

/* Button */
.button {
    background-color: #2b6cb0;
    color: #fff !important;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.25);
}

.button:active {
	background-color: #2c5282;
}

/* Resume Button Special Style */
.resume-button {
    background-color: transparent;
    border: 1.5px solid #2b6cb0;
    color: #2b6cb0 !important;
    padding: 0.7em 1.75em;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.resume-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #2b6cb0;
    transition: all 0.25s ease;
    z-index: -1;
}

.resume-button:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.2);
}

.resume-button:hover:before {
    width: 100%;
}

.resume-button:after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.resume-button:hover:after {
    transform: translateX(4px);
}

/* Section Titles */
.section-title {
    color: #1a202c;
    text-align: left;
    margin-bottom: 2em;
    position: relative;
    padding-bottom: 0.75em;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2b6cb0, #4fd1c5);
    border-radius: 2px;
}

/* Media Queries */
@media screen and (max-width: 1280px) {
	#header {
		width: 28%;
	}

	#main {
		margin-left: 28%;
		padding: 3em 2.5em;
		width: calc(100% - 28%);
	}
}


@media screen and (max-width: 736px) {
	#header {
		padding: 2.25em 1.5em;
		background-size: cover;
	}

	#main {
		padding: 2.25em 1.5em 0.25em 1.5em;
	}
	.projects-grid {
        padding: 10px;
        gap: 20px;
    }
    .project-item {
        flex-direction: column;
    }

    .project-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1em;
    }

    .project-content {
        width: 100%;
    }

    .tech-details-btn {
        align-self: center;
    }
} 

@media screen and (max-width: 480px) {
	#header {
		padding: 4.5em 1.5em;
	}
}

@media screen and (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
    }

    .swiper-container {
        height: 50vh;
        max-height: 500px;
    }

    .close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 50px;
        height: 50px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 28px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }
}

/* Footer */
#footer {
    color: #a0aec0;
    text-align: center;
    padding: 1.5em;
    width: 100%;
    margin: 0;
    background-color: #f7fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85em;
}

/* Loading State */
.swiper-slide.loading {
    position: relative;
}

.swiper-slide.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #2b6cb0;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}