/* Philippines Flag Color Palette */
:root {
    --ph-red: #CE1126;
    --ph-blue: #0038A8;
    --ph-yellow: #FCD116;
    --ph-white: #FFFFFF;
    --dark-text: #0f172a;
    --muted-text: #475569;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    --gradient-red: linear-gradient(135deg, #CE1126, #d72a3a);
    --gradient-blue: linear-gradient(135deg, #0038A8, #1d4ed8);
    --gradient-yellow: linear-gradient(135deg, #FCD116, #f59e0b);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--dark-text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.philippines-flag {
    font-size: 1.5rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.logo-text { font-weight: 700; }

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--ph-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* remove decorative background texture */

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.floating-stars { display: none; }

.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 12px; line-height: 1.15; }

.title-part { display: inline-block; }

.red-text {
    color: var(--ph-red);
}

.blue-text {
    color: var(--ph-blue);
}

.yellow-text {
    color: var(--ph-yellow);
}

.hero-subtitle { font-size: 1.375rem; margin-bottom: 16px; font-weight: 600; color: var(--muted-text); }

.hero-description { font-size: 1rem; margin-bottom: 24px; color: var(--muted-text); line-height: 1.8; }

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-btn { background: var(--ph-blue); color: #fff; box-shadow: var(--shadow); }
.primary-btn:hover { transform: translateY(-2px); }

.secondary-btn { background: transparent; color: var(--ph-blue); border: 1.5px solid var(--ph-blue); }
.secondary-btn:hover { background: var(--ph-blue); color: #fff; transform: translateY(-2px); }

/* Profile Card */
.profile-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); text-align: center; }

.profile-avatar { width: 112px; height: 112px; background: var(--ph-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 2.25rem; color: #fff; }

.profile-info h3 { font-size: 1.25rem; margin-bottom: 4px; color: var(--dark-text); }

.profile-info p { color: var(--muted-text); margin-bottom: 16px; }

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ph-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 16px; color: var(--dark-text); }

.title-underline { width: 72px; height: 3px; background: var(--ph-yellow); margin: 0 auto 16px; border-radius: 2px; }

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about { background: var(--bg-alt); }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card { background: #fff; padding: 24px; border-radius: 14px; box-shadow: var(--shadow); text-align: center; transition: transform 0.2s ease; }
.about-card:hover { transform: translateY(-6px); }

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    background: var(--ph-blue);
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.card-content p {
    color: #666;
    margin: 5px 0;
}

/* Education Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--ph-blue), var(--ph-red));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: 50%;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 50%;
    text-align: right;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 2;
    background: var(--ph-blue);
}

.timeline-card { background: #fff; padding: 22px; border-radius: 14px; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.timeline-card:hover { transform: translateY(-4px); }

.timeline-card h3 {
    font-size: 1.2rem;
    color: var(--ph-red);
    margin-bottom: 5px;
}

.timeline-card h4 {
    color: var(--ph-blue);
    margin-bottom: 10px;
}

.timeline-date {
    color: #666;
    font-weight: 500;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.achievement-badge.honor {
    background: var(--gradient-red);
    color: white;
}

/* Skills Section */
.skills { background: var(--bg-alt); }

.skills-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-grid {
    display: grid;
    gap: 15px;
}

.skill-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
}

.skill-item i {
    color: var(--ph-red);
    font-size: 1.2rem;
}

.tech-skills { background: #fff; padding: 24px; border-radius: 14px; box-shadow: var(--shadow); }

.tech-skill {
    margin-bottom: 25px;
}

.tech-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tech-skill-header i {
    color: var(--ph-blue);
    margin-right: 10px;
}

.skill-level {
    font-weight: 600;
    color: var(--ph-red);
}

.skill-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress { height: 100%; background: var(--ph-blue); border-radius: 4px; width: 0; transition: width 1.2s ease; }

.certifications { background: #fff; padding: 28px; border-radius: 14px; box-shadow: var(--shadow); }

.certifications h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: scale(1.05);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.cert-content h4 {
    color: var(--ph-red);
    margin-bottom: 5px;
}

.cert-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact { background: #0b132b; color: white; }

.contact .section-title {
    color: white;
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact .title-underline {
    background: var(--gradient-yellow);
}

.contact .section-description {
    color: #ccc;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    margin-bottom: 10px;
    color: var(--ph-yellow);
}

.contact-details p {
    color: #ccc;
}

.references {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.references h3 {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ph-yellow);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reference-card { background: rgba(255, 255, 255, 0.08); padding: 22px; border-radius: 10px; display: flex; align-items: center; gap: 20px; }

.reference-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.reference-info h4 {
    color: var(--ph-yellow);
    margin-bottom: 5px;
}

.reference-info p {
    color: #ccc;
    margin: 2px 0;
}

/* Footer */
.footer { background: #0b132b; color: white; padding: 28px 0; }

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 50px;
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .footer-content {
        text-align: center;
        flex-direction: column;
    }
}

/* Animation on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
