* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 20px;
}

/* 2-Column Dashboard Layout */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-top: 20px;
}

.profile-card, .details-card, .xp-section {
    background-color: #1e293b;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
}

/* Profile / Left Side styling */
.profile-card h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 5px;
}

.profile-card h2 {
    font-size: 16px;
    color: #38bdf8;
    margin-bottom: 25px;
    font-weight: 500;
}

.contact-box, .education-box {
    background-color: #0f172a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 10px;
    font-size: 15px;
}

.info-item i, .education-box i {
    color: #38bdf8;
    margin-right: 10px;
}

.education-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* Details / Right Side styling */
.summary-box h3, .skills-box h3, .title, .section-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
    border-left: 3px solid #38bdf8;
    padding-left: 10px;
}

.summary-box p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.skill-tag {
    background-color: #0f172a;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.skill-tag i {
    color: #38bdf8;
    margin-right: 8px;
}

/* Experience styling */
.xp-section {
    max-width: 1100px;
    margin: 20px auto 0 auto;
}

.xp-list {
    margin-top: 15px;
}

.xp-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #334155;
    font-size: 15px;
}

.xp-item:last-child {
    border-bottom: none;
}

.xp-item span {
    color: #38bdf8;
    font-weight: bold;
}

/* Projects Section Styling - Naka-Horizontal Alignment */
.projects-section {
    max-width: 1100px;
    margin: 20px auto 0 auto;
    background-color: #1e293b;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
}

.projects-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch; /* Pantay ang taas ng magkatabing card */
    margin-top: 15px;
}

.project-card {
    flex: 1;
    background: #0f172a; /* Mas madilim para mag-pop out sa background */
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.project-card p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.badge {
    align-self: flex-start;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 15px;
}

/* --- THE MORPHING TRANSITION CONTAINER --- */
.morph-container {
    position: relative;
    width: 100%;
    height: 220px; /* Sukat para sa pahigang Excel layout */
    background: #1e293b;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #334155;
}

/* Espesyal na sukat para sa portrait view ng Android App */
.phone-view {
    height: 220px; 
    max-width: 140px; /* Mas makipot para magmukhang mobile screen */
    margin: 0 auto;
}

.morph-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(5px);
    animation: morphAnimation 12s infinite ease-in-out;
}

/* Timing Delay para sa makinis na morphing ng 3 images */
.img-1 { animation-delay: 0s; }
.img-2 { animation-delay: 4s; }
.img-3 { animation-delay: 8s; }

/* CSS Keyframes para sa Morphing Animation */
@keyframes morphAnimation {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(8px);
    }
    5% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    30% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    35% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(8px);
    }
    100% {
        opacity: 0;
    }
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #64748b;
    font-size: 12px;
}

/* Responsive Grid Adjustments para sa Mobile Screens */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        flex-direction: column; /* Kapag cellphone, magpapatong ang dalawang card */
    }
}
