body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}
.main-container {
    display: flex;
    width: 100%;
    height: 100vh;
}
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8e2323;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.loader-content {
    text-align: center;
}
.triangle-svg {
    animation: logoPulse 2s infinite ease-in-out;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}
.triangle-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.5s ease-in-out forwards;
}
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}
.triangle-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    fill: #ffffff;
    opacity: 0;
    animation: fadeInA 0.5s 1.2s ease-in forwards;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
@keyframes fadeInA {
    to { opacity: 1; }
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
#main-content {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}
#main-content.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}
#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.text-content {
    flex: 1;
    background-color: #8e2323;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}
h1 {
    font-weight: 700;
    font-style: normal;
    font-size: 3em;
    margin: 0;
    line-height: 1.3;
    flex-shrink: 0;
}
p {
    font-weight: 400;
    margin-top: 10px;
    flex-shrink: 0;
}
.image-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    align-items: center;
}
.top-bar .logo {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.5em;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}
.top-bar .menu a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 40px;
    font-weight: 600;
    font-size: 1em;
}
.top-bar .menu a:hover {
    color: #ef9797;
}
.mobile-icon {
    display: none;
}
.image-content .slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.image-content .slide.active {
    opacity: 1;
    z-index: 2;
}
.image-content .blending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #8e2323 0%, rgba(240, 54, 54, 0) 60%, rgba(240, 54, 54, 0) 100%);
    z-index: 3;
    pointer-events: none;
}
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-shrink: 0;
}
.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary {
    background-color: #ffffff;
    color: #8e2323;
    border: 2px solid #ffffff;
}
.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
}
.btn-blog-primary {
    background-color: #ffffff;
    color: #8e2323;
    margin-top: 30px;
    border: 2px solid #8e2323;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; 
    display: inline-block;
}
.btn-blog-primary:hover {
    background-color: #8e2323;
    color: #ffffff;
    border-color: #8e2323;
}
.section-title {
    font-size: 2.5rem;
    color: #8e2323;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background-color: #8e2323;
    border-radius: 50px;
}
.about-section {
    width: 100%;
    background-color: #f9f9f9; 
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}
.about-wrapper-new {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    gap: 0;
}
.about-profile-photo-new {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
}
.about-profile-photo-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}
.about-text-new {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 100px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    position: relative;
}
.about-text-new::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 0;
    width: 40px;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 200'%3E%3Cpath d='M40 0 L20 0 C40 66 0 133 20 200 L40 200 Z' fill='%23f9f9f9'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 40px 200px;
    z-index: 10;
}
.about-text-new p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
}
.experience-section {
    width: 100%;
    min-height: 80vh;
    background-color: #ffffff; 
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    box-sizing: border-box;
    overflow: hidden;
}
.experience-wrapper {
    max-width: 1100px;
    width: 100%;
}
.title-center {
    text-align: center;
}
.title-center::after {
    left: 50%;
    transform: translateX(-50%);
}
.experience-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.experience-grid::-webkit-scrollbar {
    height: 8px;
}
.experience-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.experience-grid::-webkit-scrollbar-thumb {
    background: #8e2323;
    border-radius: 10px;
}
.exp-card {
    flex: 0 0 calc((100% - 60px) / 3);
    scroll-snap-align: start;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 4px solid #8e2323;
    box-sizing: border-box;
}
.exp-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.exp-card h4.company-name {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #8e2323;
}
.exp-date {
    display: inline-block;
    font-size: 0.9rem;
    color: #8e2323;
    font-weight: 600;
    margin-bottom: 15px;
}
.exp-card p {
    margin: 0;
    line-height: 1.6;
    color: #666666;
}
.skills-container {
    margin-top: 30px;
}
.text-center {
    text-align: center;
}
.center-tags {
    justify-content: center;
}
.skills-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    background-color: #ececec;
    color: #333;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s ease;
}
.tag:hover {
    background-color: #8e2323;
    color: #ffffff;
}
.projects-section {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    box-sizing: border-box;
    overflow: hidden;
}
.projects-wrapper {
    max-width: 1100px;
    width: 100%;
}
.projects-subtitle {
    color: #666666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}
.projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.projects-grid::-webkit-scrollbar {
    height: 8px;
}
.projects-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.projects-grid::-webkit-scrollbar-thumb {
    background: #8e2323;
    border-radius: 10px;
}
.project-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid transparent;
    flex: 0 0 350px;
    scroll-snap-align: start;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 4px solid #8e2323;
}
.project-title {
    font-size: 1.5rem;
    color: #8e2323;
    margin-top: 0;
    margin-bottom: 15px;
}
.project-desc {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
}
.contact-section {
    width: 100%;
    min-height: 70vh;
    background-color: #8e2323;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}
.contact-wrapper {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-title {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
}
.contact-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffd6d6;
    margin-bottom: 40px;
}
.btn-contact {
    background-color: #ffffff;
    color: #8e2323;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: 2px solid #ffffff;
}
.btn-contact:hover {
    background-color: transparent;
    color: #ffffff;
}
.social-links {
    margin-top: 40px;
    margin-bottom: 50px;
    display: flex;
    gap: 30px;
}
.social-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: 0.3s ease;
}
.social-link:hover {
    color: #ffb3b3;
}
.social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffb3b3;
    transition: width 0.3s ease;
}
.social-link:hover::after {
    width: 100%;
}
.footer-bottom {
    position: static !important;
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #ffb3b3;
    opacity: 0.8;
}
.typing-cursor::after {
    content: '|';
    color: #ffffff;
    animation: blinkCursor 0.8s infinite;
    margin-left: 2px;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#typewriter-h1 { min-height: 1.2em; }
#typewriter-p { min-height: 4.8em; }

@media screen and (max-width: 768px) {

    #typewriter-h1 { min-height: 2.6em; }
    #typewriter-p { min-height: 6.5em; }

    .main-container {
        flex-direction: column;
        background-color: #8e2323;
    }
    .text-content {
        flex: none;
        width: 100%;
        min-height: 50vh;
        height: auto;
        padding: 30px;
        padding-top: 70px;
        justify-content: center;
        box-sizing: border-box;
    }
    .image-content {
        flex: none;
        width: 100%;
        height: 50vh;
    }
    .text-content h1 {
        font-size: 2.2em;
    }
    .image-content .blending-overlay {
        background: linear-gradient(to bottom, #8e2323 0%, rgba(240, 54, 54, 0) 60%, rgba(240, 54, 54, 0) 100%);
    }
    .top-bar {
        position: fixed;
        background-color: #8e2323;
        padding: 15px 30px;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .top-bar .logo {
        margin: 0;
        line-height: 1;
        display: flex;
        align-items: center;
    }
    .top-bar .menu {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        align-items: center;
    }
    .top-bar .menu a {
        margin: 0 0 0 20px;
    }
    .desktop-text {
        display: none;
    }
    .mobile-icon {
        display: inline-block;
        font-size: 1.4em;
    }
    .about-section {
        padding: 80px 30px;
    }
    .about-wrapper-new {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        min-height: auto;
    }
    .about-text-new::before {
        display: none;
    }
    .about-profile-photo-new {
        position: relative;
        width: 200px;
        height: 200px;
        flex: none;
        margin: 0 auto 30px auto;
        border: 4px solid #ffffff;
        border-radius: 50%;
        box-sizing: border-box;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .about-profile-photo-new img {
        border-radius: 50%;
    }
    .about-profile-photo-new::after {
        content: '';
        position: absolute;
        background: none;
        top: -15px;
        left: -15px;
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        border: 3px solid #8e2323;
        border-left-color: transparent;
        border-right-color: transparent;
        border-radius: 50%;
        z-index: -1;
        box-sizing: border-box;
        animation: spinRing 8s linear infinite;
    }
    .about-text-new {
        padding: 0;
        display: block;
    }
    .about-text-new .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .experience-section {
        padding: 80px 30px;
    }
    .exp-card {
        flex: 0 0 100%; 
    }
    .projects-section {
        padding: 80px 30px;
    }
    .project-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
    .contact-section {
        padding: 80px 30px 40px 30px;
    }
}