:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #bc13fe;
    --secondary: #00f2ff;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fs-h1: 4.5rem;
    --fs-h2: 3rem;
    --fs-h3: 1.8rem;
    --fs-p: 1.2rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(188, 19, 254, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 242, 255, 0.1) 0px, transparent 50%);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Scroll Reveal Animation Styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 12, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

#logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    letter-spacing: 1px;
}

#logo span { color: var(--primary); }

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

/* Home Section */

/* Pasabit Media */
@media screen and (max-width: 768px) {
    #home { margin-top: 80px; }    
}

@media screen and (max-width: 1200px) {
    .social-icons { justify-content: center; }
}

/* pinasabit katamad sa baba */

.hero {
    min-height: 90vh; 
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(188, 19, 254, 0.1);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(188, 19, 254, 0.3);
}

.hero-content h1 {
    font-size: var(--fs-h1);
    margin: 1.2rem 0;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h3 {
    font-size: var(--fs-h3);
    color: var(--text-dim);
    margin-bottom: 1.8rem;
}

.hero-content p {
    font-size: var(--fs-p);
    color: var(--text-dim);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.social-icons {
    display: flex;
    gap: 2rem;
}

.social-icons i {
    font-size: 1.8rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.social-icons i:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.image-blob {
    width: 450px; 
    height: 450px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 8s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-blob img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: inherit;
}

@keyframes blob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* About Section */
#about {
    padding: 60px 0; 
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 4rem;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

/* Hover Effects for About Content */
.card:hover {
    background: rgba(188, 19, 254, 0.08);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.2);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.card:hover h3 {
    text-shadow: 0 0 10px var(--primary);
}

.card p {
    font-size: 1.2rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.skills-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-tag-container span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.skills-tag-container span:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.tech-stack-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.tech-item img {
    height: 80px; 
    filter: grayscale(1) opacity(0.6);
    transition: var(--transition);
}

.tech-item:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.2) rotate(5deg);
}

@media screen and (max-width: 768px) {
    #about { 
        padding-top: 100px;
        margin-top: 100px; 
    }
}

/* Animations (Internal logic for scrolling fallback) */
@keyframes reveal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Certificates Section */
#certificates { padding: 100px 0; }

.certificate-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.certificate-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
}

.certificate-slider::-webkit-scrollbar { display: none; }

.cert-card {
    min-width: 380px; 
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.cert-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cert-info { padding: 20px; }
.cert-info h4 { font-size: 1.4rem; color: var(--primary); }

.cert-card.placeholder {
    height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.placeholder-content { text-align: center; color: var(--text-dim); }
.placeholder-content i { font-size: 2.5rem; margin-bottom: 10px; }

.scroll-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    position: absolute;
}

.scroll-btn.left { left: -22px; }
.scroll-btn.right { right: -22px; }

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary);
}

/* Footer Section */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p { font-size: 1.3rem; margin-bottom: 1.5rem; }

.email-link {
    display: inline-block;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item i { font-size: 1.5rem; color: var(--primary); }
.contact-item span { font-size: 1.1rem; }

.contact-item:hover {
    border-color: var(--primary);
    background: rgba(188, 19, 254, 0.1);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    :root {
        --fs-h1: 3rem;
        --fs-h2: 2.2rem;
        --fs-h3: 1.5rem;
        --fs-p: 1.1rem;
    }
    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-image { order: -1; margin: 0 auto; width: 300px; height: 300px; }
    .image-blob { width: 100%; height: 100%; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .about-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links { grid-template-columns: 1fr; }
    .contact-item { justify-content: center; }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 100px 0 40px; }
    .hero-wrapper { grid-template-columns: 1fr 1fr; text-align: left; }
    .hero-image { order: 0; width: 200px; height: 200px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { margin: 1rem 0; }
    .navigation { height: 50px; }
    #logo { font-size: 1.4rem; }
}

@media screen and (max-width: 480px) {
    :root {
        --fs-h1: 2.5rem;
    }
    .container { padding: 0 1.2rem; }
    .hero-image { width: 240px; height: 240px; }
    .card { padding: 1.5rem; }
    .stats-row { gap: 1.5rem; flex-direction: column; align-items: center; }
    .tech-grid { gap: 2rem; }
    .tech-item img { height: 50px; }
    .cert-card { min-width: 280px; }
}
